Reputation: 51
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
Upvotes: 2
Views: 746
Reputation: 51
to stop the tabbing between two dock widget add this line of code in your application
setDockOptions(QMainWindow::AnimatedDocks);
the default value of DockOptions in qt is AnimatedDocks | AllowTabbedDocks
Upvotes: 3
Reputation: 418
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
Upvotes: 0