Solved QML preview not working on Raspberry Pi
-
Hi,
I am developing a Qt Quick app for raspberry pi from my host machine. My only problem is that while designing a new qml file I can not preview it on the device. It says waiting for connection on port 10000. I tried changing port, exporting QTDIR, adding bin folder to the PATH. I can not run my app on the host machine (to use host for design) and this has become really frustraiting. Any Ideas? -
Hi Dehghannn,
The message "QML Debugger: Waiting for connection on port 10000... " is OK. I have a few questions/suggestions:
- Did you device connection installed correctly? Did you try to Deploy and Run your application? (without QML previewing)
- Do you have "Forward to local display" checkbox inside "Run" settings of your project? Can you try to turn it on?
- If you don't have "Forward to local display" checkbox, could you please choose inside "Run" settings: Environment -> Add -> variable "DISPLAY" and variable value ":0"
-
Hi Tatiana,
thanks for answering
1- Yes, I have deployed and run my application many times.
2- No, I dont have "Forward to local display" checked because I am using EGLFS not X11. But I tested it anyhow and it did not make any difference. maybe qml live view does not work on EGLFS.
3- I added this variable alongside my other variables and it did not make any difference.
You made me realize I could try testing it with X11 and do my design on X11 and then run it on EGLFS. I will update if it worked.
EDIT: I tested with xcb and raspberry desktop running, still no qml live view.
I should add this though. In EGLFS when I don't use the -nomouse option, the mouse appears in the top left corner which is a sign a gui application is running I suppose. -
I updated my Qt Creator to 7.0.2 and it was fixed.