Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39561

TextField cursor does not change in hovering when QQuickWidget is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.4.0
    • 5.3.0, 5.4.0 Beta
    • Quick: Widget
    • None
    • Windows 7, Ubuntu 13.04
    • 737379ad810d4431a93bed214f50b25632ba00e5

      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
          }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ulherman Ulf Hermann
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes