Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Qt 6.11 is out! See what's new in the release blog

QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 4 Posters 39.5k Views 2 Watching
  • 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.
  • I Offline
    I Offline
    ImAli
    wrote on last edited by
    #1

    I am trying to run a program on pycharm and I am having this warning:

    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use 
    QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    
    

    Can anyone suggest how to set

    QT_QPA_PLATFORM=wayland
    

    ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Its an environment variable
      so you can set it before running the app or on a global scale.

      I 1 Reply Last reply
      1
      • mrjjM mrjj

        Hi
        Its an environment variable
        so you can set it before running the app or on a global scale.

        I Offline
        I Offline
        ImAli
        wrote on last edited by
        #3

        @mrjj could you please explain how to do that? I tried

        export QT_QPA_PLATFORM=wayland
        

        method but it did not help

        jsulmJ 1 Reply Last reply
        0
        • I ImAli

          @mrjj could you please explain how to do that? I tried

          export QT_QPA_PLATFORM=wayland
          

          method but it did not help

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

          I tried

          Where exactly? Did you try it in the same terminal where you also started the application?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          I 1 Reply Last reply
          1
          • jsulmJ jsulm

            @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

            I tried

            Where exactly? Did you try it in the same terminal where you also started the application?

            I Offline
            I Offline
            ImAli
            wrote on last edited by
            #5

            @jsulm I think you made a spot on. Could you please explain how to do that?! I am new to linux and not experienced. I think I did it incorrectly as you said

            jsulmJ 1 Reply Last reply
            0
            • I ImAli

              @jsulm I think you made a spot on. Could you please explain how to do that?! I am new to linux and not experienced. I think I did it incorrectly as you said

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

              Could you please explain how to do that?!

              Please first explain what exactly you did!
              Do you start your application from QtCreator or from a terminal?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              I 1 Reply Last reply
              0
              • jsulmJ jsulm

                @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

                Could you please explain how to do that?!

                Please first explain what exactly you did!
                Do you start your application from QtCreator or from a terminal?

                I Offline
                I Offline
                ImAli
                wrote on last edited by
                #7

                @jsulm I start the app just like a normal one. I mean I downloaded it from software store, and do not open or run it through the terminal

                jsulmJ 1 Reply Last reply
                0
                • I ImAli

                  @jsulm I start the app just like a normal one. I mean I downloaded it from software store, and do not open or run it through the terminal

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

                  do not open or run it through the terminal

                  Then try to do so.
                  Open a terminal, enter "export QT_QPA_PLATFORM=wayland" there and then start the app from that terminal:

                  $ export QT_QPA_PLATFORM=wayland
                  $ PATH_TO_THE_APP_EXECUTABLE
                  

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  M 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

                    do not open or run it through the terminal

                    Then try to do so.
                    Open a terminal, enter "export QT_QPA_PLATFORM=wayland" there and then start the app from that terminal:

                    $ export QT_QPA_PLATFORM=wayland
                    $ PATH_TO_THE_APP_EXECUTABLE
                    
                    M Offline
                    M Offline
                    MorkSun
                    wrote on last edited by
                    #9

                    @jsulm 竁

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved