Forum
Sign Up
× DataGrid for Qt.C++

check box filed on Qtitan::GridTableView

10 years 2 weeks ago #1 by yanivhakak
check box filed on Qtitan::GridTableView was created by yanivhakak
Is there such a thing? please Can place an example?

Please Log in or Create an account to join the conversation.

  • yanivhakak
  • yanivhakak's Avatar Topic Author
10 years 2 weeks ago #2 by Developer Machines
You can add check box to the grid this way:

Qtitan::GridTableColumn* column = (Qtitan::GridTableColumn *)view->getColumn(0);
column->setEditorType(Qtitan::CheckBoxEditorType);

All values from the model will be converted to bool type in this case.
The following user(s) said Thank You:

Please Log in or Create an account to join the conversation.

More
10 years 1 week ago #3 by yanivhakak
Replied by yanivhakak on topic check box filed on Qtitan::GridTableView
is there checkBox checked signal?

Please Log in or Create an account to join the conversation.

  • yanivhakak
  • yanivhakak's Avatar Topic Author
10 years 4 hours ago #4 by yanivhakak
Replied by yanivhakak on topic check box filed on Qtitan::GridTableView
is there checkBox checked signal like Qtitan::GridTableColumn have?
Qtitan::GridTableColumn::buttonClicked(CellButtonClickEventArgs *)

Please Log in or Create an account to join the conversation.

  • yanivhakak
  • yanivhakak's Avatar Topic Author
9 years 11 months ago #5 by Developer Machines
Such a signal is not present. When the user clicks on the check box, the value is set into the model directly.

Please Log in or Create an account to join the conversation.

More
8 years 1 week ago #6 by Aaron
I've come across this same issue. I'm not sure how to determine if my cell item has been checked or not.

item->isCheckable() is false so the checkState is not getting changed. So there must be another value inside the model I can look up to determine if the cell is checked?

Could someone provide an example please?

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.139 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )