Forum
Sign Up
× DataGrid for Qt.C++

check box filed on Qtitan::GridTableView

12 years 4 months 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
12 years 4 months 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
12 years 4 months 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
12 years 4 months 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
12 years 3 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
10 years 4 months 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.186 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 )