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
Forum Updated to NodeBB v4.3 + New Features

plugion xcb can't be loaded

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 514 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.
  • F Offline
    F Offline
    fabiopires10
    wrote on 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?

    JonBJ 1 Reply Last reply
    0
    • C Offline
      C Offline
      CPPUIX
      wrote on 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

        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?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on 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

        • Login

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