Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] setting a different platform

    General and Desktop
    1
    2
    948
    Loading More Posts
    • 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.
    • clogwog
      clogwog last edited by

      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 ?

      1 Reply Last reply Reply Quote 0
      • clogwog
        clogwog last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post