Hi,
I want to create a dock widget with a custom title widget. That custom title widget has my own icons (maximize, minimize, close etc). A snapshot of the dock widget is attached.
Source code is simply like that:
MyDockTitle * titleWidget = new MyDockTitle(dock);
dock->setTitleBarWidget(titleWidget);
QDockWidget *dock = new QDockWidget("name", parent);
MyDockTitle * titleWidget = new MyDockTitle(dock);
dock->setTitleBarWidget(titleWidget);
To copy to clipboard, switch view to plain text mode
When I run the program, dock widget is shown appropriately but unfortunately I can not move the dock widget (it is in floating state). What can be the problem?
P.S. When I dont use custom title widget, I can move dock widget.
Thanks...
Bookmarks