qt - QTableWidget, cellClicked and cellDoubleClicked -


i have qtablewidget row selection, , i'm trying treat 3 signals:

  • cellclicked
  • celldoubleclicked
  • customcontextmenurequested

things seem fine in code: had in mind connect syntax, type params correct , match, etc; , more specific, "know" code correct because have following situation:

  • if connect 3 signals respective slots, single click , context menĂº work.
  • if connect 1 signal each time compile code , run program, signal working (for 3 of them).
  • if connect single click signal , context menu, commenting connect macro double click, work well. same double click , context menu.

but if connect single click , double click, double click not being treated custom slot.

just clarify, each signal has different slot, , meantioned above, work if connect 1 of them , comment other 2 in code.

so question is: there bug cellclicked , celldoubleclick working simultaneously? have set flag, attribute or whatever belongs qtablewidget?

i'm running out of ideas, help!

and also, maybe code should help:

table , slots declaration:

qtablewidget * table;  public slots:   void tablechange(int row, int column);   void tablechangedbl(int row, int column);   void popupmenutableshow(const qpoint &); 

the connects:

  connect(table, signal(celldoubleclicked(int, int)), this, slot(tablechangedbl(int, int)));   connect(table, signal(cellclicked(int, int)), this, slot(tablechange(int, int)));   connect(table, signal(customcontextmenurequested(const qpoint &)), this, slot(popupmenutableshow(const qpoint &))); 


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -