QDockWidget Draggable Tabs

前端 未结 7 1789
执念已碎
执念已碎 2020-12-31 00:59

I am using QDockWidgets and placing two of them on the left side of my application so that tabs can be used to select between them. However, Qt\'s default behavior for this

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 01:31

    have you tried:

    myDockingWidget->setTitleBarWidget(0)
    

    edit:

        QWidget* titleWidget = new QWidget(this);
        mUi.dockWidget->setTitleBarWidget(titleWidget);
    

    where 'this' is a QMainWindow

    this will remove the title bar, though im not sure how to make the QDockWidget draggable from the tabs

提交回复
热议问题