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.

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
  • 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 25 Mar 2018, 03:48 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Mar 2018, 07:29 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 25 Mar 2018, 08:23 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
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 25 Mar 2018, 08:32 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 25 Mar 2018, 08:51 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 25 Mar 2018, 09:02 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.

              M 1 Reply Last reply 25 Mar 2018, 09:08
              0
              • ? A Former User
                25 Mar 2018, 09:02

                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.

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 25 Mar 2018, 09:08 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 25 Mar 2018, 09:15 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.

                  M 1 Reply Last reply 25 Mar 2018, 09:41
                  0
                  • ? A Former User
                    25 Mar 2018, 09:15

                    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.

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 25 Mar 2018, 09:41 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 25 Mar 2018, 10:08 last edited by
                      #10

                      Finally got it. Here's the output.

                      ? 1 Reply Last reply 25 Mar 2018, 10:53
                      1
                      • ? A Former User
                        25 Mar 2018, 10:08

                        Finally got it. Here's the output.

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on 25 Mar 2018, 10:53 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
                        • M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 25 Mar 2018, 11:20 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 25 Mar 2018, 11:42 last edited by
                            #13

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

                            Thanks for sharing.

                            1 Reply Last reply
                            0

                            7/13

                            25 Mar 2018, 09:08

                            • Login

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