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. Widget Style is different if App is running in Qt Creator then "outside" under Windows
Forum Updated to NodeBB v4.3 + New Features

Widget Style is different if App is running in Qt Creator then "outside" under Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 320 Views 1 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.
  • K Offline
    K Offline
    klausix
    wrote on last edited by
    #1

    Dear All!
    I updated my Qt app to 6.6 and have the following problem now:
    When I run my app which is using a QDial from within Qt Creator, everything looks like expected (see the left dial on the screenshot).

    But when It runs right from the File-System in the target folder i get a complete different look of the QDial (and also the buttons) - see the right dial on the screenshot.

    Even when I try to set the style via QApplication::setStyle(QStyleFactory::create("Windows")); it is not changed.
    Somewhere I read that styles can me implemented via Plug-Ins. Do I have to add some DLLs to the folder whre the .exe is residing so get the correct result?
    Or anything else...?

    Many thanks in advance,
    KlausQDial.jpg

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

      Hi,

      If you want to start your application from the explorer you should follow the deployment steps with windeployqt. I must say that it is surprising that your application starts at all already.

      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
      • K klausix

        Dear All!
        I updated my Qt app to 6.6 and have the following problem now:
        When I run my app which is using a QDial from within Qt Creator, everything looks like expected (see the left dial on the screenshot).

        But when It runs right from the File-System in the target folder i get a complete different look of the QDial (and also the buttons) - see the right dial on the screenshot.

        Even when I try to set the style via QApplication::setStyle(QStyleFactory::create("Windows")); it is not changed.
        Somewhere I read that styles can me implemented via Plug-Ins. Do I have to add some DLLs to the folder whre the .exe is residing so get the correct result?
        Or anything else...?

        Many thanks in advance,
        KlausQDial.jpg

        C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        @klausix The dial on the left looks like Windows Vista Style, but may be Fusion, and the right-hand dial is maybe Windows style like you coded.

        The style plugins live, alongside all the others, under the Qt library folder .../plugins/styles. An online installer version of Qt 6.6 on Windows 11 gives me only the Windows Vista Style plugin.

        Christian EhrlicherC 1 Reply Last reply
        0
        • C ChrisW67

          @klausix The dial on the left looks like Windows Vista Style, but may be Fusion, and the right-hand dial is maybe Windows style like you coded.

          The style plugins live, alongside all the others, under the Qt library folder .../plugins/styles. An online installer version of Qt 6.6 on Windows 11 gives me only the Windows Vista Style plugin.

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @ChrisW67 Because windows and fusion are built-in into QtWidgets.

          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
          0

          • Login

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