Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. plugion xcb can't be loaded

plugion xcb can't be loaded

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 451 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.
  • F Offline
    F Offline
    fabiopires10
    wrote on 15 Sept 2023, 09:08 last edited by
    #1

    I am trying to run an application using QT but I am getting the following error

    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

    08:44:28: The program has unexpectedly finished.
    My OS is Rocky 8.8. Any idea what may be the cause of this error and how can I fix it?

    J 1 Reply Last reply 15 Sept 2023, 12:22
    0
    • C Offline
      C Offline
      CPPUIX
      wrote on 15 Sept 2023, 10:29 last edited by
      #2

      Hi,

      Have you tried any of the suggestions in these:

      • qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      • QT6: "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found."
      1 Reply Last reply
      0
      • F fabiopires10
        15 Sept 2023, 09:08

        I am trying to run an application using QT but I am getting the following error

        qt.qpa.xcb: could not connect to display
        qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
        This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

        Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

        08:44:28: The program has unexpectedly finished.
        My OS is Rocky 8.8. Any idea what may be the cause of this error and how can I fix it?

        J Offline
        J Offline
        JonB
        wrote on 15 Sept 2023, 12:22 last edited by
        #3

        @fabiopires10
        In addition to @Abderrahmene_Rayene, the starting move is to set environment variable QT_DEBUG_PLUGINS to value 1 and then run your program. You can do that from a terminal/shell or from Qt Creator. Then look at diagnostic output, near the end where it is failing.

        1 Reply Last reply
        0

        3/3

        15 Sept 2023, 12:22

        • Login

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