I have two qDockWidgets have the same allowed area ,qt by default allows overlapping between two dock widgets so the two dock widgets will be a one tab widget . I want to stop this behavior
how to preventoverlapping between two qdockwidgets in same area?
689 views Asked by MaramWadi At
2
There are 2 answers
1
On
Just try to setFocusPolicy to Qt::ClickFocus, which mean the QWidget will accept focus only by mouse click and not by keyboard tab.
more info at this link http://qt-project.org/doc/qt-4.8/qwidget.html#focusPolicy-prop
to stop the tabbing between two dock widget add this line of code in your application
the default value of DockOptions in qt is
AnimatedDocks | AllowTabbedDocks