Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can't focus on TextField in Intergration Mode
Forum Updated to NodeBB v4.3 + New Features

Can't focus on TextField in Intergration Mode

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 838 Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved