Questions tagged [qqmlapplicationengine]

QQmlApplicationEngine is a class from the Qt Toolkit which provides a convenient way to load an application from a single QML file.

Documentation can be found here (Qt5).

67 questions
0
votes
1 answer

Accessing QMLEngine /rootObject properties in .cpp files other than main.cpp

I have two radio buttons in one panel defined in one .qml file. I need to access the property whether it is checked or not in another QML file or in .cpp file of some c++ class. I am able to do it in main.cpp using these lines…
Prasad
  • 1
  • 1
0
votes
1 answer

TableView and QAbstracTableModel when calls QQmlApplicationEngine from another class

I am trying to make the model QAbstractTableModel in cpp and connect to qml. This code works well. MyModel.h #ifndef MYMODEL_H #define MYMODEL_H #include class MyModel : public QAbstractTableModel { Q_OBJECT public: …
GAVD
  • 1,977
  • 3
  • 22
  • 40
0
votes
0 answers

PyQt5 QML Update/Refresh View on Property Change?

Okay, so I have this simple code that takes the property 'Text' of the object 'button_name' and modifies it. It does work , but only if the view(ApplicationWindow /engine) is active/focused and only if I move the mouse around. If the view is out of…
HaR
  • 987
  • 7
  • 23
0
votes
0 answers

Replace qt window embed in a widget via QWidget::createWindowContainer

I have a QML window embed inside a QWidget via QWidget::createWindowContainer(). To provide some reloading capabilities without hiding the window, I would like to be able to replace the underlying (embed) qml window, without destroying and…
cmourglia
  • 2,423
  • 1
  • 17
  • 33
0
votes
1 answer

Invoke QML method from C++

I want to invoke a method in MyMap from my class MyBacklogg, how do I do this when I don't have the object parameters in that class? I'm going to receive a string, a QByteArray or a QDataStream in MyBacklogg, depending on which one that works the…
Oliver
  • 59
  • 1
  • 8
0
votes
0 answers

X11VNC performance - QQuickView vs QQmlApplicationEngine

I am running a QML application and using X11VNC to remotely view the output. When the QML application uses QQmlApplicationEngine, I am only able to see 2-5 frames per second on the VNC viewer whereas when I use QQuickView, I am able to see 8-10…
Nithyesh
  • 105
  • 8
0
votes
1 answer

Render a QQuickItem on a second window without changing its parent hierarchy

I have to render a QQuickItem owned by a particular window, into another. Basically MyQQuickItem owned by window1 to be rendered on window2. This switch has to happen in my app repeatedly due to a certain functionality. I do the following to achieve…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
1 answer

How to create a new QQuickItem copy from scratch on C++ side with the same properties as an existing one

I have a QQuickItem fetched from C++ side like this. QQuickItem * my_item = qmlEngine->rootObjects()[0]->findChild("ItemObjectName"); my_item is valid & has all the properties set on to it. Scenario I have 2 windows which need this…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
1 answer

How create a separate copy of a QQuickItem & render it on a different window

I have a QQuickItem fetched from C++ side like this. QQuickItem * my_item = qmlEngine->rootObjects()[0]->findChild("ItemObjectName"); my_item is valid & has all the properties set on to it. Scenario I have 2 windows which need this…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
1 answer

How to add a dynamically created QQuickitem to my application's main.qml or the QML list of items

I need to dynamically create a QQuickitem & add to my main.qml. Trying to do it, I create a QQuickitem in the following way. qml_engine->load(QUrl(QStringLiteral("qrc:/qml/main.qml"))); // Creating my QQuickItem here QQuickItem * dynamic_quick_item…
0
votes
0 answers

How to load a custom QQuickItem from inside a library so that it gets registered & updated like other QQuickItems in the application

I have a MyQuickItem class derived from QQuickItem as below // MyQuickItem.hpp class MyQuickItem : public QQuickItem { Q_OBJECT public: MyQuickItem(); virtual ~ MyQuickItem(); protected: QSGNode* updatePaintNode(QSGNode *,…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
1 answer

How can I get access to object of `QQmlApplicationEngine` inside a `QQuickItem` derived class?

The variable engine in the following typical main function of a QtApp is a valid instance of QQmlApplicationEngine. int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; …
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
0 answers

QML custom Item not working with QQmlApplicationEngine

I made a accordion in QML and when I try to use it in a QML project, it works fine. But I need to integrate it in a QWidget project, so I try to use a QQmlApplicationEngine to display it. But when I do this, nothing work, just name of the items are…
Ed Nio
  • 593
  • 2
  • 11
  • 27
0
votes
1 answer

Force QApplication using QQmlApplicationEngine to be on foreground

I am trying to force my application to stay on top of everything even when other processes pop up. Here's a simplified version of my main: main.cpp QApplication app{argc, argv}; QQmlApplicationEngine …
Grégoire Borel
  • 1,880
  • 3
  • 33
  • 55
0
votes
1 answer

Is is possible to update Qml Android application by changing qml file remotely

I am wondering if it is possible to update qml android application remotely by changing qml file. To do this : Qml should be read from the filesystem of the device dynamically instead embedding into the apk. Is it possible?
Muhammet Ali Asan
  • 1,486
  • 22
  • 39