Seems nobody knows something regarding this issue.
Is there someone who can acknowledge that TextIput is working in a QQuickWindow Context in QT5.3.0 RC ?

I have tried on Win 8.1 64 Bit with msvc 2013 x64 Angle based and on Ubuntu 64 Bit with no success.

For us this point is very important, because we try to port some of our 'ui' to 'qtquick', most part of the application must stay in old 'QWidget' type.

Am 14.05.2014 17:08, schrieb Günter Michel:
Hello

I try to port a program from using 'createWindowContainer' to the new QQuickWidget in Qt 5.3.0 RC

In this widget i have a simple Rectangle with a TextInput. The 'TextInput' shows no cursor when clicked and doesn't respond to keystrokes. Also TextField from the desktop controls doesn't work.

What do i miss, or is this a bug?
import  QtQuick  2.1
import  QtQuick.Controls  1.1;
import  QtQuick.Layouts  1.0;
import  QtQuick.Controls.Styles  1.1

Rectangle  {
     width:  400
     height:  400
     color:  "beige"

     TextInput  {
         id:  mytext
         x:  40
         y:40
         width:  100
         height:50
         focus:  true
     }
}

MainWindow::MainWindow(QWidget  *parent)  :
     QMainWindow(parent),
     ui(new  Ui::MainWindow)
{
     ui->setupUi(this);

     QQuickWidget  *w  =  new  QQuickWidget();
     w->setResizeMode(QQuickWidget::SizeRootObjectToView);
     w->setFocusPolicy(Qt::ClickFocus);
     w->setSource(QUrl("qrc:/test.qml"));

     this->setCentralWidget(w);
     w->show();
}

The version with QQuickView and createWindowContainer work as expected.

Thanks for yout hints



_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


--
MES Industrieautomation GmbH
Simmershäuser Straße 102D
D-34125 Kassel

Tel.  0049(0561) 813004
Fax   0049(0561) 813005
Mobil +49 172 9822485
E-mail: g...@mes-ia.de
http:// www....@mes-ia.de

Registergericht: Amtsgericht Kassel HRB5618

Geschäftsführer: Ralf Brüne
                 Günter Michel
                 Axel Rosenthal
                 Manfred Stangl

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to