QtitanDataGridModel-view DataGrid component with rich functionality for Qt.C++ and PySideQtitanRibbonReplicates Microsoft RibbonUI interface for Qt.C++ and PySideQtitanNavigationDesignUIReplicates Microsoft Navigation Design interface for Qt.C++ and PySideQtitanChartCharts and Diagrams component for Qt.C++ and PySideQtitanDockingDockable Panels and Tool Bars for Qt.C++ and PySideQtitanFastInfosetXML Compressed format FastInfoset implementation for Qt.C++ and PySideRoadmap Development 2023
FireDataGridPowerful, modern, fast, DB-Aware Grid for Delphi-FiremonkeyFireDockingDelphi IDE/Visual Studio implementation of dock panels for Delphi-Firemonkey
Hi,
instead th standard context menu, i want to have my own context menu, different menus for column cells and row headers. Do you have an example, how i can do this?
Thanks
To do that you need subscribe to the contextMenu() signal from TableView/BandedTableView. In slot of this signal you will have the ContextMenuEventArgs class pointer as parameter. To get the element on which you have clicked please use ContextMenuEventArgs::hitInfo() function.
Additionaly ContextMenuEventArgs::contextMenu() returns the pointer to the QMenu which will be showing. You may modify it as you need.
Other way, you can set ContextMenuEventArgs::setHandled(true)and creating and showing new Qmenu in this slot directly.