Re: [Interest] Signals, slots before the event loop starts?

2019-04-10 Thread Giuseppe D'Angelo via Interest
Il 11/04/19 00:18, Jason H ha scritto: In a QObject who is exported to QML, and is instantiated just below the top-level Window: // in the object's open() method: if (!_serialPort.open(QIODevice::ReadWrite)) qApp->quit(); // won't actually quit - no use if I can't use the serial port.

Re: [Interest] Signals, slots before the event loop starts?

2019-04-10 Thread Jason H
Because I can't. The QML engine is loading, creating the objects. There is nothing I can return to. Its like I want to create the event loop, init, then hand the app.exec() pick up the events already queued in the event loop... > Sent: Thursday, April 11, 2019 at 3:20 AM > From: "Tony Rietwyk

Re: [Interest] Signals, slots before the event loop starts?

2019-04-10 Thread Tony Rietwyk
Hi Jason, Why can't your initialisation pass back a status to the main routine? Otherwise I suggest to use a short timer, so it gets picked up early when the main event loop starts. Hope that helps, Tony On 11/04/2019 8:18 am, Jason H wrote: I've now come across two places in my code where

[Interest] qmlimportscannder doesn't add WebView used in static lib

2019-04-10 Thread Alexander Ivash
Any workarounds? I understand that I can import WebView from main.qml but is there more clean way?___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

[Interest] Signals, slots before the event loop starts?

2019-04-10 Thread Jason H
I've now come across two places in my code where this is an issue (at various states of initializing) In a QObject who is exported to QML, and is instantiated just below the top-level Window: // in the object's open() method: if (!_serialPort.open(QIODevice::ReadWrite)) qApp->quit(); //

Re: [Interest] Initialization of Buffer entity property in QML

2019-04-10 Thread Jérôme Godbout
The new is not something you should do into binding for sure. If I look at the Qml Buffer doc: https://doc.qt.io/qt-5/qml-qt3d-render-buffer.html Not much seem to be expose to Qml, syncData, usage https://doc.qt.io/qt-5/qt3drender-qbuffer.html and the sub class QBuffer offer the following propert

[Interest] Initialization of Buffer entity property in QML

2019-04-10 Thread Volker Enderlein
Hi, in a QML file I try to initialize a property of type Buffer, but unfortunately it does not work. There's no error but in the MyMesh Entity the vertices Buffer always has zero length. import Qt3D.Core 2.0 import Qt3D.Render 2.0 import QtQuick 2.0 import Qt3D.Extras 2.10 Entity {     i