Qt Apps look weird on RasPi



  • Hi all,

    I have recently cross-compiled Qt 5.5 to my Raspberry Pi 2 using this guide:

    https://wiki.qt.io/RaspberryPi2EGLFS
    

    One of the last parts of the guide includes running the QOpenGLWidget example.
    When running this example, the application does not use the Fusion style, but instead an "old"-looking
    style.

    Not quite sure how to explain it, but this style seems to me like some kind of a fallback style.
    It looks horrible (for example, the QDial widget's "needle" is shown as a triangle), and I've no
    idea how to fix it.

    It seems to affect all Qt5 application I cross-compile from my Ubuntu 14.04.03 LTS x64 system.
    I also tried compiling Qt5 Style Chooser on the Pi, and selected the Fusion theme there, but it didn't work.

    Can anyone help me?

    P. S. I'm new to the forum and my English kinda sucks... sorry about that!


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    One thing that might give some more information is to start the application with QT_DEBUG_PLUGINS set to 1 so you can see what is happening there.

    Hope it helps



  • @SGaist Hi, thanks for tne quick reply.
    Here is the output when running the QOpenGLWidget example:

    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqxcb.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqxcb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "xcb"
            ]
        },
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/platforms" ...
    loaded library "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/egldeviceintegrations" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so"
    Found metadata in lib /usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEGLDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_brcm"
            ]
        },
        "className": "QEglFSBrcmIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs_brcm")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-kms-integration.so"
    Found metadata in lib /usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-kms-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEGLDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_kms"
            ]
        },
        "className": "QEglFSKmsIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs_kms")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/egldeviceintegrations" ...
    loaded library "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforminputcontexts" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "compose"
            ]
        },
        "className": "QComposePlatformInputContextPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("compose")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "ibus"
            ]
        },
        "className": "QIbusPlatformInputContextPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ibus")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/platforminputcontexts" ...
    loaded library "/usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    [9;0]QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/imageformats" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqgif.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqgif.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ],
            "MimeTypes": [
                "image/gif"
            ]
        },
        "className": "QGifPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqico.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqico.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico",
                "cur"
            ],
            "MimeTypes": [
                "image/vnd.microsoft.icon"
            ]
        },
        "className": "QICOPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ico", "cur")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqjpeg.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqjpeg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg"
            ],
            "MimeTypes": [
                "image/jpeg",
                "image/jpeg"
            ]
        },
        "className": "QJpegPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("jpg", "jpeg")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqsvg.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqsvg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml"
            ]
        },
        "className": "QSvgPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/imageformats" ...
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqgif.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqico.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqjpeg.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqsvg.so"
    Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/iconengines" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/iconengines/libqsvgicon.so"
    Found metadata in lib /usr/local/qt5pi/plugins/iconengines/libqsvgicon.so, metadata=
    {
        "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz",
                "svg.gz"
            ]
        },
        "className": "QSvgIconPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz", "svg.gz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/iconengines" ...
    


  • Anyone?
    Do I need to provide some more information?


  • Lifetime Qt Champion

    That's not the complete log



  • @SGaist
    This is the complete log, but I've provided it again, generated by a new run, just in case.
    I think I see the problem though: before I terminate the application, Qt seems to be searching for something in
    a folder, apparently, and eventually, not finding it. Could this be the problem?

    FactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqxcb.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqxcb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "xcb"
            ]
        },
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/platforms" ...
    loaded library "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/egldeviceintegrations" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so"
    Found metadata in lib /usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEGLDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_brcm"
            ]
        },
        "className": "QEglFSBrcmIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs_brcm")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-kms-integration.so"
    Found metadata in lib /usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-kms-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEGLDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_kms"
            ]
        },
        "className": "QEglFSKmsIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs_kms")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/egldeviceintegrations" ...
    loaded library "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforminputcontexts" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "compose"
            ]
        },
        "className": "QComposePlatformInputContextPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("compose")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "ibus"
            ]
        },
        "className": "QIbusPlatformInputContextPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ibus")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/platforminputcontexts" ...
    loaded library "/usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    [9;0]QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/imageformats" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqgif.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqgif.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ],
            "MimeTypes": [
                "image/gif"
            ]
        },
        "className": "QGifPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqico.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqico.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico",
                "cur"
            ],
            "MimeTypes": [
                "image/vnd.microsoft.icon"
            ]
        },
        "className": "QICOPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ico", "cur")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqjpeg.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqjpeg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg"
            ],
            "MimeTypes": [
                "image/jpeg",
                "image/jpeg"
            ]
        },
        "className": "QJpegPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("jpg", "jpeg")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqsvg.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqsvg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml"
            ]
        },
        "className": "QSvgPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/imageformats" ...
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqgif.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqico.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqjpeg.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqsvg.so"
    Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/iconengines" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/iconengines/libqsvgicon.so"
    Found metadata in lib /usr/local/qt5pi/plugins/iconengines/libqsvgicon.so, metadata=
    {
        "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz",
                "svg.gz"
            ]
        },
        "className": "QSvgIconPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz", "svg.gz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/iconengines" ...
    ^C
    

  • Lifetime Qt Champion

    Can you test a simple widget application ?



  • OK, I've made a simple application, containing only a dial, a progress bar, and two buttons.
    I believe that it had produced the same log though:

    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqxcb.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqxcb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "xcb"
            ]
        },
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/platforms" ...
    loaded library "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/egldeviceintegrations" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so"
    Found metadata in lib /usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEGLDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_brcm"
            ]
        },
        "className": "QEglFSBrcmIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs_brcm")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-kms-integration.so"
    Found metadata in lib /usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-kms-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEGLDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_kms"
            ]
        },
        "className": "QEglFSKmsIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs_kms")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/egldeviceintegrations" ...
    loaded library "/usr/local/qt5pi/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforminputcontexts" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "compose"
            ]
        },
        "className": "QComposePlatformInputContextPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("compose")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
    Found metadata in lib /usr/local/qt5pi/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "ibus"
            ]
        },
        "className": "QIbusPlatformInputContextPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ibus")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/platforminputcontexts" ...
    loaded library "/usr/local/qt5pi/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    [9;0]QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/imageformats" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqgif.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqgif.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ],
            "MimeTypes": [
                "image/gif"
            ]
        },
        "className": "QGifPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqico.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqico.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico",
                "cur"
            ],
            "MimeTypes": [
                "image/vnd.microsoft.icon"
            ]
        },
        "className": "QICOPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ico", "cur")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqjpeg.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqjpeg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg"
            ],
            "MimeTypes": [
                "image/jpeg",
                "image/jpeg"
            ]
        },
        "className": "QJpegPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("jpg", "jpeg")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/imageformats/libqsvg.so"
    Found metadata in lib /usr/local/qt5pi/plugins/imageformats/libqsvg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml"
            ]
        },
        "className": "QSvgPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/imageformats" ...
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqgif.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqico.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqjpeg.so"
    loaded library "/usr/local/qt5pi/plugins/imageformats/libqsvg.so"
    Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/iconengines" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/iconengines/libqsvgicon.so"
    Found metadata in lib /usr/local/qt5pi/plugins/iconengines/libqsvgicon.so, metadata=
    {
        "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz",
                "svg.gz"
            ]
        },
        "className": "QSvgIconPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz", "svg.gz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/Projects/iconengines" ...
    ^C
    
    


  • Don't bother, I solved it myself.

    Thing is, Qt had two styles installed: Windows and Fusion. For some reason,
    Windows was the first and the default style, which is why the widgets were
    ugly.

    The solution was to export the QT_OVERRIDE_STYLE environment variable and
    set it to 'Fusion'. That's it.

    A more permanent solution will be to figure out why is the Windows style the default one, but I don't have time for this.


  • Lifetime Qt Champion

    You can also pass the style as a parameter to your application when you start it.

    Indeed, the Windows style plugin being compiled is a bit surprising


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.