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
in our application we have a drop down gallery to select and item and beneath some buttons to do something with the item selected (after selecting it).
By default the gallery is closed after selection of an item.
We researched the source code and found this place
void RibbonGallery::mouseReleaseEvent(QMouseEvent* event)
{
QTN_D(RibbonGallery);
if (d.pressed_ || (/*parentWidget()->getPosition() == BarPopup &&*/ isItemSelected()))
{
d.pressed_ = false;
d.repaintItems();
int index = hitTestItem(event->pos());
if (index != -1)
{
d.repaintItems();
emit itemSelectionChanged();
emit itemClicked(getItem(index));
//*********************************************************************************************
// insert a new property and check here if it is set should solve the problem
if (OfficePopupMenu* popupBar = qobject_cast<OfficePopupMenu*>(parentWidget()))
popupBar->close();
//*********************************************************************************************
}
}
}
We have 2 questions regarding this:
1. Is this the right place to adopt this behaviour?
2. Does it make sense for you to offer this functionality by setting a flag?