Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.3, 6.9.1
Description
The drop area for QToolBar gets triggered even when the toolbar is outside the window. This issue occurs when moving the toolbar to the left or top (vertically)of the window, but not when moving it to the right or bottom (vertically).
Expected behavior: drop Area shouldn't be enabled when the toolbar is outside of the window.
To reproduce the issue run the code below:
#include <QApplication> #include <QMainWindow> #include <QToolBar> int main(int argc, char *argv[]) { qDebug() << "Qt version:" << QT_VERSION_STR; QApplication app(argc, argv); QMainWindow win; win.resize(600, 400); QToolBar *toolbar = new QToolBar("Main Toolbar", &win); QAction *newAction = toolbar->addAction("New"); QAction *openAction = toolbar->addAction("Open"); win.addToolBar(Qt::TopToolBarArea, toolbar); win.show(); return app.exec(); }
I have attached a video that demonstrates the behavior