[SOLVED] setting a different platform



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

    @>./menu
    Failed to load platform plugin "eglfs". Available platforms are:
    linuxfb
    minimal
    offscreen
    xcb@

    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
 

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