c++ - QCheckBox inside QTableWidget, clicking on label won't alter state -


if call qtablewidget.setcellwidget widget contains qcheckbox clicking on label of checkbox not alter state. appears though table consuming part of mouse events. if click on box directly alter state. clicking on box or label cause checkbox focus.

is there anyway checkbox behave within table?

this not real answer want seems work in small test program. i'll show here in hope you:

int main(int argc, char* argv[]) {     qapplication app(argc, argv);      qtablewidget table(1, 1);     qcheckbox check("test");     table.setcellwidget(0, 0, &check);     table.show();      return app.exec(); } 

Comments

Popular posts from this blog

iphone - Request for member 'uitextfield' in something not a structure or union? -

Cursor error with postgresql, pgpool and php -

c++ - error: use of deleted function -