Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Run QT app by disabling the display and UI
Qt 6.11 is out! See what's new in the release blog

Run QT app by disabling the display and UI

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 290 Views
  • 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.
  • P Offline
    P Offline
    pruthashinde
    wrote on last edited by
    #1

    Hello,
    I am trying to execute my QT app by disabling the display and user interface. Can you please guide me in this!?
    I have tried using following things but nothing has worked for me.

    1. my-app --platform offscreen
    2. my-app -qws -display QVFB:0
    3. export DISPLAY=:0
    4. Commenting code related to UI invoke, changing current window in stacked widget, hiding, showing and deleting windows

    I get following error in the USB logs:
    Executing My App...
    Warning: EGLFS: Failed to open /dev/fb1
    Fatal: EGLFS: Can't continue without a display
    Aborted

    jsulmJ 1 Reply Last reply
    0
    • P pruthashinde

      Hello,
      I am trying to execute my QT app by disabling the display and user interface. Can you please guide me in this!?
      I have tried using following things but nothing has worked for me.

      1. my-app --platform offscreen
      2. my-app -qws -display QVFB:0
      3. export DISPLAY=:0
      4. Commenting code related to UI invoke, changing current window in stacked widget, hiding, showing and deleting windows

      I get following error in the USB logs:
      Executing My App...
      Warning: EGLFS: Failed to open /dev/fb1
      Fatal: EGLFS: Can't continue without a display
      Aborted

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @pruthashinde You need to use https://doc.qt.io/qt-6/qcoreapplication.html for Qt applications without UI.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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