Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.11.0 - QApplication: invalid style override passed, ignoring it.
Forum Updated to NodeBB v4.3 + New Features

Qt 5.11.0 - QApplication: invalid style override passed, ignoring it.

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 8.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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Re: [Qt 5.8.0 - QApplication: invalid style override passed](ignoring it.)

    I have the same issue in this unresolved referenced post. I'm on Linux Cinnamon 18.3, running Qt 5.11.0. During debug, I get this:

    QApplication: invalid style override passed, ignoring it.
    

    Using

        qDebug() << QApplication::style()->metaObject()->className();
    

    I get this:

    ("Windows", "Fusion")
    QFusionStyle
    

    I have no idea what to do. I think what has me bugged the most is that the Qt devs haven't resolved this issue yet. However, I'm new to Qt and haven't done anything with it yet. So as far as I know, this will be a non-issue with released work.

    If you can help me with this problem, I'd appreciate you.

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

      Hi,

      What do you get if you define the QT_DEBUG_PLUGINS environment variable ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Okay, you busted me. I'm not just new to Qt but also to C++. I don't know how to do what you asked. Now would be a nice time to learn though, if you don't mind. I apologize for my ignorance.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          on the command line execute

          export QT_DEBUG_PLUGINS=1
          

          then run your application from this command line and post the output. The idea is that there is an old plugin somewhere around which creates this error.
          Are you passing a command line option to your application? Esp. '-style' - otherwise I don't know how this warning message could occur...

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @Christian-Ehrlicher said in Qt 5.11.0 - QApplication: invalid style override passed, ignoring it.:

            export QT_DEBUG_PLUGINS=1

            I pass nothing to the compiler. I Ctrl-9 and that's it.

            I hope I did this right. I don'[t think I did though. The output was way too mkuch for here, so I posted it in a code bin.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              I mean Ctrl-R. Sorry, I just woke up and haven't even fed the cows and chickens yet. I'd like to resolve this issue though. I appreciate you guys' help.

              mrjjM 1 Reply Last reply
              0
              • ? A Former User

                I mean Ctrl-R. Sorry, I just woke up and haven't even fed the cows and chickens yet. I'd like to resolve this issue though. I appreciate you guys' help.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #7

                @landslyde
                Hi
                export QT_DEBUG_PLUGINS=1
                should be typed in a linux shell.
                Then in same shell you start creator.
                The output suggest you did it right :)

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #8

                  I typed export QT_DEBUG_PLUGINS=1 to the Project Folder in my Linux terminal. Then made sure Qt Creator was set to Debug mode. But every time I type in the Debugger Console export QT_DEBUG_PLUGINS=1, it gives me Can only evaluate during a debug session.

                  mrjjM 1 Reply Last reply
                  0
                  • ? A Former User

                    I typed export QT_DEBUG_PLUGINS=1 to the Project Folder in my Linux terminal. Then made sure Qt Creator was set to Debug mode. But every time I type in the Debugger Console export QT_DEBUG_PLUGINS=1, it gives me Can only evaluate during a debug session.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @landslyde said in Qt 5.11.0 - QApplication: invalid style override passed, ignoring it.:

                    Can only evaluate during a debug session.

                    Hi
                    Its only ment to be set as a environment in a normal linux shell and then Creator started from same shell
                    to make it dump info for SO plugins it loads.
                    Not sure Debugger Console will understand it as its not debug statement, just a normal environment key.

                    1 Reply Last reply
                    1
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #10

                      Finally got it. Here's the output.

                      ? 1 Reply Last reply
                      1
                      • ? A Former User

                        Finally got it. Here's the output.

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #11

                        It appears this is a well-known issue, one that, for the life of me, I can't tell if the Qt devs are working on or not. I love the Qt look and feel, its ease of use. But if they can't solve this, or a community fix come to light, then it looks like Qt's dead in the water for me. Hard to believe an app as robust as Qt falls short like this.

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

                          Hi
                          i also get this warning on Mint linux with XFCE.
                          It seems related to Cinnamon and gtk(3) stuff.
                          Running same setup with KDE did not produce any such warning.
                          It has no ill affect on the app running but it might not look native.

                          https://forum.qt.io/topic/78023/qt-applications-don-t-look-natie-linux-mint-18-1-cinnamon

                          1 Reply Last reply
                          1
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #13

                            There's always a "catch", huh? Oh well =)

                            Thanks for sharing.

                            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