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. Vista style is not loaded
Forum Updated to NodeBB v4.3 + New Features

Vista style is not loaded

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.0k 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.
  • M Offline
    M Offline
    mcmigliore
    wrote on last edited by
    #1

    Hello,
    It seems that the plugin loader does not search for the "styles" folder, so the vista style plugin is not loaded (styles\qwindowsvistastyle.dll).
    In order to debug, I have set QT_DEBUG_PLUGINS=1 and QT_STYLE_OVERRIDE=vista and here is the output:

    QFactoryLoader::QFactoryLoader() checking directory path "D:/myApp/bin/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "D:/myApp/bin/platforms/qwindows.dll"
    Found metadata in lib D:/myApp/bin/platforms/qwindows.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "windows"
            ]
        },
        "archreq": 0,
        "className": "QWindowsIntegrationPlugin",
        "debug": false,
        "version": 330752
    }
    
    
    Got keys from plugin meta data ("windows")
    loaded library "D:/myApp/bin/platforms/qwindows.dll"
    QFactoryLoader::QFactoryLoader() checking directory path "D:/myApp/bin/platformthemes" ...
    QApplication: invalid style override passed, ignoring it.
        Available styles: Windows, Fusion
    QFactoryLoader::QFactoryLoader() checking directory path "D:/myApp/bin/iconengines" ...
    QFactoryLoader::QFactoryLoader() checking directory path "D:/myApp/bin/imageformats" ...
    QFactoryLoader::QFactoryLoader() checking directory path "D:/myApp/bin/accessible" ...
    QFactoryLoader::QFactoryLoader() checking directory path "D:/myApp/bin/accessiblebridge" ...
    

    Any idea?
    I'm using Qt 5.9
    Thanks

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

      Hi and welcome to devnet,

      Does it happen on a deployed application ?

      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
      • M Offline
        M Offline
        mcmigliore
        wrote on last edited by
        #3

        Indeed,
        It does not happen when I build the application against my system QT.

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

          How are you deploying your application ?
          Are you using windeployqt ?

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

          M 1 Reply Last reply
          1
          • SGaistS SGaist

            How are you deploying your application ?
            Are you using windeployqt ?

            M Offline
            M Offline
            mcmigliore
            wrote on last edited by
            #5

            I'm not responsible of the packaging but I don't think windeployqt is used.

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

              Then you should try to use windeployqt and check its output with regard to the package you get.

              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
              0

              • Login

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