Can't focus on TextField in Intergration Mode



  • 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();
    @



  • 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 ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.