Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML preview not working on Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

QML preview not working on Raspberry Pi

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 554 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DehghannnD Offline
    DehghannnD Offline
    Dehghannn
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tatiana Borisova
      wrote on last edited by
      #2

      Hi Dehghannn,

      The message "QML Debugger: Waiting for connection on port 10000... " is OK. I have a few questions/suggestions:

      1. Did you device connection installed correctly? Did you try to Deploy and Run your application? (without QML previewing)
      2. Do you have "Forward to local display" checkbox inside "Run" settings of your project? Can you try to turn it on?
      3. 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"
      1 Reply Last reply
      0
      • DehghannnD Offline
        DehghannnD Offline
        Dehghannn
        wrote on last edited by Dehghannn
        #3

        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.

        1 Reply Last reply
        0
        • DehghannnD Offline
          DehghannnD Offline
          Dehghannn
          wrote on last edited by
          #4

          I updated my Qt Creator to 7.0.2 and it was fixed.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved