Important: Please read the Qt Code of Conduct -

[SOLVED] setting a different platform

  • how can i specify what display platform qt uses ?
    when i run my application i get a:

    Failed to load platform plugin "eglfs". Available platforms are:

    even though i specified -no-egl during the configure.
    how can i configure qt or force the application to use xcb for example ?

  • well this is embarrassing,

    @>./menu -platform xcb @

    seems to do the trick..

    now trying to add a
    @#define QT_QPA_DEFAULT_PLATFORM_NAME "xcb"@
    to qplatformdefs.h in my mkspec directory to set the default platform

    the environment variable QT_PLATFORM_PLUGIN doesn't seem to be picked up though

Log in to reply