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. QML tests on docker fail
Forum Updated to NodeBB v4.3 + New Features

QML tests on docker fail

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 2 Posters 284 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.
  • A Offline
    A Offline
    AkshayFP
    wrote on last edited by
    #1

    I have been trying to run QML tests on a Docker file and I keep getting:

    qt.qpa.xcb: could not connect to display
    

    Which is correct because I don't have a display in Docker. I tried to run -platform offscreen but then I get an error saying - Unknown option: '-platform'.

    The tests for C++ runs fine.

    How should I get over this? Any help would be appreciated.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      One other possible way is to set the QT_QPA_PLATFORM environment variable.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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