Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Can't focus on TextField in Intergration Mode

    QML and Qt Quick
    1
    2
    717
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      Hello everybody :)
      I have a question about my problem...
      I create a simple QWidget Applciation with QML file... after load and show my qml file into Widget anything is ok but TextField and TextAreaField focus property isn't work ! why ? I mean i can't click into TextField or TextAreaField to type ... !
      @
      import QtQuick 2.2
      import QtQuick.Window 2.1
      import QtQuick.Controls 1.2

      Rectangle {
      visible: true
      width: 360
      height: 360

      Rectangle{
      Text {
          text: qsTr("Hello World")
          anchors.centerIn: parent
      }
      
      MouseArea {
          anchors.fill: parent
          onClicked: {
              Qt.quit();
          }
      }
      
      Button {
          id: button1
          x: -36
          y: 14
          text: qsTr("Button")
      }
      
      TextField {
          id: textField1
          x: -62
          y: 53
          placeholderText: qsTr("Text Field")
      }
      
      }
      

      }

      @

      and C++ codes...

      @

      QQuickWidget *view = new QQuickWidget;
      QUrl source("qrc:qml/main.qml");

      view->setSource(source);
      view->show();
      @

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

        Someone can help me?
        Selection doesn't work for the TextInput and TextAreaInput even when it's not read only. this is a bug ?! how can I solve this problem ?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post