Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
4.8.5, 5.1.1
-
None
-
Windows 7, Mac
-
-
Delay-create resize handler (fixes Windows): a4c4c12f0a7d00f238ede46f1fa8f89f61dce9a0 (dev, 3.7.2014, 5.4)
Description
set cursor to QDockWidget with setCursor. Cursor is OK as long as QDockWidget is not dragged. Cursor is lost as soon as drag is started. Changing the cursor back to the wanted cursor in CursorChanged -event did not fix the issue either.
#include "mainwindow.h" #include <QApplication> #include <QDockWidget> #include <QMainWindow> int main(int argc, char *argv[]) { QApplication a(argc, argv); QMainWindow w; w.resize(QSize(500,400)); w.setCursor(Qt::OpenHandCursor); QDockWidget *dockWidget = new QDockWidget(&w); dockWidget->setCursor(QCursor(Qt::CrossCursor)); dockWidget->setFloating(false); QWidget *dockWidgetContents = new QWidget(); dockWidget->setWidget(dockWidgetContents); w.addDockWidget(Qt::RightDockWidgetArea, dockWidget); w.show(); return a.exec(); }
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-34352 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
88877,5 | QDockWidget: Delay-create QWidgetResizeHandler. | dev | qt/qtbase | Status: MERGED | +2 | 0 |
88879,2 | Add fixme-comment to QWidgetResizeHandler. | dev | qt/qtbase | Status: MERGED | +2 | 0 |