Forum
Sign Up
× DataGrid for Qt.C++

replacing QTableView with qtitangrid

12 years 10 months ago #1 by corrado valeri
replacing QTableView with qtitangrid was created by corrado valeri
I have some dialogs that are using qtableviews, and I'm planning to replace them with qtitangrid.

At the present the dialogs I made are using the currentRowChanged signal of the selectionModel linked to the tableviews to update some items contents in relation to the view row selected: which is the correct way to replace the tableviews with qtitangrid keeping this behaviour?
Here is a screenshot of one of the dialogs i'm using:



many thanks
Attachments:

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

  • corrado valeri
  • corrado valeri's Avatar Topic Author
12 years 10 months ago #2 by Developer Machines
In QtitanDataGrid 2.0 you can use one of the following signals to implement the behavior what you describe before:
void GridTableView::rowClicked(QObject* sender, RowClickEventArgs* args);
void GridTableView::rowDblClicked(QObject* sender, RowClickEventArgs* args);
void GridTableView::cellClicked(QObject* sender, CellClickEventArgs* args);
void GridTableView::cellDblClicked(QObject* sender, CellClickEventArgs* args);
void GridTableView::focusRowChanged(QObject* sender, int oldRowIndex, int rowIndex);
void GridTableView::focusColumnChanged(QObject* sender, int oldColumnIndex, int columnIndex);

focusRowChanged, focusColumnChanged - signals will be thrown regardless of the change focus reason (mouse, keyboard or other). I think in your case it is the most optimal variant.

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

More
12 years 10 months ago #3 by corrado valeri
Replied by corrado valeri on topic replacing QTableView with qtitangrid
Great! 2.0 version seems to bring us a great improvements to Qtitangrid API! thank for your help.

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

  • corrado valeri
  • corrado valeri's Avatar Topic Author
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.254 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 )