Hmm... definitely not the right way to do it. Take a look at Qt::CheckStateRole and Qt::ItemIsUserCheckable and forget about index widgets.
Hmm... definitely not the right way to do it. Take a look at Qt::CheckStateRole and Qt::ItemIsUserCheckable and forget about index widgets.
sorry but can you be more practical? i'm very new to qt programming (1 month) and i have greats difficulties to find useful examples for really beginners like me.
Qt::CheckStateRole and Qt::ItemIsUserCheckable are to set the properties of the checkboxes i suppose, but now they works like i want with my code, there are some reason because i shouldn't use it? is it deprecated ?
if I have to forget about index widgets how can i do what i need? i tried to use QItemDelegate with no success, and also it's too much complicated for my little job. (create a custom viewtable with checkbox on first coloumn and textview on the second coloumn)
have you a simple example where i can look how to make something that can help me capturing only the text i need to take?
thanks for helping me.
Hopefully this thread helps: QSqlTableModel and checkboxes with SQLite database
J-P Nurmi
Bookmarks