alexi_nedo
6th September 2010, 12:25
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:
QDockWidget *dock = new QDockWidget("name", parent);
MyDockTitle * titleWidget = new MyDockTitle(dock);
dock->setTitleBarWidget(titleWidget);
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...
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:
QDockWidget *dock = new QDockWidget("name", parent);
MyDockTitle * titleWidget = new MyDockTitle(dock);
dock->setTitleBarWidget(titleWidget);
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...