Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0, 5.4.0 Beta
-
None
-
Windows 7, Ubuntu 13.04
-
737379ad810d4431a93bed214f50b25632ba00e5
Description
When TextField is used with QQuickWidget, hovering does not change the cursor. However, if createWindowContainer() is used, then hovering works.
QQuickWidget qxWidget; qxWidget.setFocusPolicy(Qt::StrongFocus); qxWidget.setResizeMode(QQuickWidget::SizeRootObjectToView); qxWidget.setSource(QUrl("qrc:/main.qml")); QVBoxLayout* pLayout = new QVBoxLayout(); pLayout->addWidget(&qxWidget); QWidget* widget = new QWidget; widget->setLayout(pLayout); window.setCentralWidget(widget); window.resize(800, 600); window.show();
qml:
Rectangle{ visible: true width: 640 height: 480 TextField { text: qsTr("Hello World") anchors.centerIn: parent } }