How do I make a floating toolbar in Qt like the top floating toolbar of the Microsoft Windows RDP client, some sample code? Relations
Inside your derived QMainWindow class:
QToolBar* pToolBar = new QToolBar(this); pToolBar->setAllowedAreas(Qt::NoToolBarArea); pToolbar->setFixedWidth(300); pToolBar->setFixedHeight(50); /* add actions to pToolBar here */ addToolBar(Qt::NoToolBarArea, pToolBar);
I would do it myself - from scratch. AFAIk none of the existing Qt widgets will give you what you want. However, it should be trivially easy to subclass a QWidget and create your own.