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

TextField cursor does not change in hovering when QQuickWidget is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0
    • 5.3.0, 5.4.0 Beta
    • Quick: Widget
    • 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
          }
      }
      

      Attachments

        1. qtbug39561.zip
          1 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes