Forum
Sign Up
× DataGrid for Qt.C++

How to reflect viewer operation on another viewer.

4 years 6 months ago #1 by Stephanie
we are using 5.13.0 version of QtitanDataGrid.
We are using single data model for 2 views.
I want to reflect/apply any viewer operation (like sorting, grouping, filtering,... etc.) of view to another view.

We investigated and found APIs to give the information about filters, sorting applied or not on view, But there is no any delegate which raises the signal whether viewer operations (like sorting, filtering, grouping,... etc.) applied.So, we can perform the same operation on another viewer.

Could you please let us know is there any way to reflect/apply any viewer operation (like sorting, grouping, filtering,... etc.) of view to another view.

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

More
4 years 6 months ago - 4 years 6 months ago #2 by Developer Machines
Grid has signals that are rised on operations you are looking for:

GridViewBase::startGrouping(ColumnGroupArgs* args) - grouping about to be changed.
GridViewBase::groupingChanged() - grouping changed.
GridViewBase::selectionChanged(GridSelection* selection, GridSelection* oldSelection) - view selection changed.
GridViewBase::focusRowChanged(int oldRowIndex, int rowIndex)
and
GridViewBase::focusColumnChanged(int oldColumnIndex, int columnIndex) to control the focus.
GridViewBase::filterActivated()
GridViewBase::filterDeactivated() for the filter status changed.
GridViewBase::zoomFactorChanged(double factor) - to set the same zoom factor for both views.
GridViewBase::columnsUpdated() - columns order or visibility changed.

Will be added to the next update:
GridViewBase::sortingChanged() (5.15.0)
Last edit: 4 years 6 months ago by Developer Machines.

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.117 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 )