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
1
vote
1 answer

Qt/QML: How do I "switch to" or "open" another QML file without restarting my app?

I have a little application that loads a QML file from a server and displays some kind of "book shelf" to the user. The user can pick one of the displayed books and C++ will download a ZIP file in the background, unpacks it. The result is a folder…
BastiBen
  • 19,679
  • 11
  • 56
  • 86
0
votes
1 answer

QML and PySide6 "TypeError: Cannot read property 'x' of null"

I am working on an application front-end written in PySide6 that uses Qt Widgets for most of the GUI, but I am trying to add some QML dialogs generated using data sent from a separate back-end. When trying to launch a QML file, I encounter the…
grahamhs
  • 11
  • 4
0
votes
0 answers

Restore minimized frameless window from Taskbar

I'm creating one basic qml application with visibility:"FullScreen", and I have one button to minimize the application but after minimizing if i click on the exe in task bar its coming with framed application with min, max, close. I want it again…
0
votes
1 answer

QML window is not visible when loaded from QQmlApplicationEngine

Problem The problem is that I have some C++ code that loads a QML file called gui.qml, it compiles with no problem, but when running it doesn't display the QML app window but also doesn't give any errors. Code Here is the C++ code that I use to load…
PyDev19
  • 33
  • 6
0
votes
1 answer

Invalid Property name "hoverbutton". (M16) | Qt quick | //@disable-check M16 solution not working

I am creating a simple image viewer QT Quick application on QT6 using QT Creator 10.0.0. I have two Qml files namely main.qml and hoverButton.qml . When I am trying to instantiate the hoverbutton inside my main.qml file I get the error - Invalid…
0
votes
1 answer

QQmlApplicationEngine failed to load component on Python

This problem is similar to QML module not found when using KDE Kirigami , but in this case, setting the QML_IMPORT_PATH env var before running the pyhton file doesn't solve the problem. I have this simple…
penguin86
  • 109
  • 7
0
votes
0 answers

Insert characters with accentuation in inputText

I need to insert characters with accent like É, ã or â when my app works in portuguese but when I try to insert (e.g. " a + ~") it doesn't happen. The problem is caused because I'm using Qt Virtual Keyboard but I don't know how to avoid it. Code…
0
votes
0 answers

QML Application Window moved to no non-viewable area and is no longer able to be moved to viewable area

I'm building a qml application, and the application window has the following hints set: Qt.CustomizeWindowHint and Qt.Window. When trying to work on scaling the application on a click and drag that switches the state of the window from…
0
votes
0 answers

Qml SwipView current index changes on changing swipe orientation

I am trying to switch the orientation of the swipe on some specific item/page index of the swipeview in qml. When I change the orientation using this piece of code, index changes for no reason that I know of. SwipeView { id: view …
taimoor1990
  • 158
  • 1
  • 13
0
votes
2 answers

Dynamically loading and unloading 2 qml files from cpp

I have requirement to launch 2 different Qml files "mainwindow.qml" and "basic.qml" ,wheras both are independent of each other. Initially i need to launch qml window based on flag bSettingMainWindow, based on this i will be launching any one of the…
0
votes
0 answers

Why QQmlAppicationEngine crashes on exit if QApplication is not specifically referenced as parent?

I have a simple qml app, following the QmlBook tutorial. The Qml code is as such: Window { id: root visible: true width: Screen.width / 2 height: Screen.height / 2 title: "Happy Windmill" onHeightChanged: console.log('new…
sheybass
  • 3
  • 1
0
votes
1 answer

How to cleanly expose C++ backend objects to QML, for varying setContextProperties?

I am creating a QML Application with a C++ backend. Different types of cameras can connect to my C++ backend. These cameras have different types of sensors and different numbers of batteries, etc. Depending on what type of Camera is connected, the…
HiddenNetwork
  • 97
  • 1
  • 8
0
votes
1 answer

QT Signal Documentation on Dial

I am struggling with this problem and I can find any solution. So I have this code for QML Dial { id: volumeDial property int speedValue: volumeDial.value.toFixed(0) objectName: "speedDial" from: 0 value: 42 to: 100 …
0
votes
0 answers

How to set profile to QQmlApplicationEngine?

I want to web profile to QQmlApplicationEngine like this QWebEngine code: web = QWebEngineView() pf = QWebEngineProfile("unsurf", web) page = QWebEnginePage(pf, web) web.setPage(page) I found QQuickWebEngineProfile, but couldn't found way to set…
Haruka
  • 1
0
votes
1 answer

QQmlApplication not loading in release

I am developping a desktop application in QtQuick/C++, on windows 10. In main() function, I create a QQmlApplicationEngine, set some other classes as context property to it, and finally load my qml file. Everything went well since recently, when I…