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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -