Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.0
-
None
-
Ubuntu
Description
auto scene = new QGraphicsScene; scene->addWidget(new QLineEdit("I'm QLineEdit and I'm interactive on the scene!"))->setGeometry({0, 0, 400, 30}); scene->addWidget(new QQuickWidget(QUrl("qrc:/Foo.qml")))->setY(40); auto view = new QGraphicsView(scene); v_layout->addWidget(view, 1); window.setLayout(v_layout); window.show();
Foo.qml contains `TextArea` item which is supposed to get user input, even though the item is focused (focus property is true) text cursor does not appear.
TextArea { anchors { fill: parent margins: 1 } text: qsTr("TextArea here, I should be interactive.. but I'm not :(") + qsTr("\nI have focus: ") + focus }