<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[qt.qpa.xcb: could not connect to display]]></title><description><![CDATA[<p dir="auto">I was  deploying SVO on ubuntu20.04 and encountered some problems involving  xcb, I set</p>
<pre><code>export QT_DEBUG_PLUGINS=1
</code></pre>
<p dir="auto">and was reported:</p>
<pre><code>QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/ros/noetic/lib/rviz/platforms" ...
loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
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, xcb.

Aborted (core dumped)
</code></pre>
<p dir="auto">I've tried some solutions posted online like setting QT_QPA_PLATFORM and reinstalling Qt, but didn't work. How should i do to fix this. More information will be provided if needed.</p>
]]></description><link>https://forum.qt.io/topic/154965/qt-qpa-xcb-could-not-connect-to-display</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 01:59:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/154965.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Feb 2024 10:37:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to qt.qpa.xcb: could not connect to display on Wed, 28 Feb 2024 11:39:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ronel_qtmaster">@<bdi>Ronel_qtmaster</bdi></a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> said in <a href="/post/791640">qt.qpa.xcb: could not connect to display</a>:</p>
<blockquote>
<p dir="auto">Check your <code>DISPLAY</code> environment variable and whether you have Xorg display server properly running.</p>
</blockquote>
<p dir="auto">Instead of your Qt program try running, say, <code>xterm</code> from the same place and see if it fails equally.</p>
]]></description><link>https://forum.qt.io/post/791652</link><guid isPermaLink="true">https://forum.qt.io/post/791652</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Wed, 28 Feb 2024 11:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to qt.qpa.xcb: could not connect to display on Wed, 28 Feb 2024 11:16:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> how to change to display for example to lcd display?</p>
]]></description><link>https://forum.qt.io/post/791644</link><guid isPermaLink="true">https://forum.qt.io/post/791644</guid><dc:creator><![CDATA[Ronel_qtmaster]]></dc:creator><pubDate>Wed, 28 Feb 2024 11:16:20 GMT</pubDate></item><item><title><![CDATA[Reply to qt.qpa.xcb: could not connect to display on Wed, 28 Feb 2024 10:57:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eighteen">@<bdi>Eighteen</bdi></a><br />
The output shows it has loaded <strong>xcb</strong> support/<code>libqxcb.so</code> successfully, so that is not the problem.  The issue is:</p>
<blockquote>
<p dir="auto"><code>qt.qpa.xcb: could not connect to display</code></p>
</blockquote>
<p dir="auto">So it can't actually find a connectable display.  Check your <code>DISPLAY</code> environment variable and whether you have Xorg display server properly running.</p>
]]></description><link>https://forum.qt.io/post/791640</link><guid isPermaLink="true">https://forum.qt.io/post/791640</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Wed, 28 Feb 2024 10:57:16 GMT</pubDate></item></channel></rss>