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
I'm using docking 3.8.0 (built with msvc2019 64 bit) and when my docks are floating the min/max/close buttons are visible above the floating dock's title bar.
I have tried setting my underlying widget with Qt::FramelessWindowHint, but it's still visible. What are the steps to make this invisible?
DockWidgetPanel it is not a top level window that can holds this flag. As far as i understand the task, you need to customize the titlebar of the dock panel. There is a method for this: DockWidgetPanel::setTitleBar(anyQWidget);
Use the code below to create a custom title bar:
class CustomTitleBar : public QWidget
{
public:
CustomTitleBar() : QWidget() {
QHBoxLayout* layout = new QHBoxLayout(this);
QPushButton* b = new QPushButton();
b->setText(tr("New Button"));
layout->addWidget(b, 1, Qt::AlignRight);
layout->addSpacing(0);
layout->setContentsMargins(QMargins());
}
virtual QSize minimumSizeHint() const
{
return QSize(30, 30);
}
private:
protected:
};
DockWidgetPanel* panel1 = dockPanelManager()->addDockPanel(tr("Panel 1"), Qtitan::LeftDockPanelArea);
QWidget* anyWidget = new CustomTitleBar();
panel1->setTitleBar(anyWidget);