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. Onlu two Qstyle styles in CLion but three in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Onlu two Qstyle styles in CLion but three in Qt Creator

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 472 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.
  • P Offline
    P Offline
    Peter. P from Nerv
    wrote on last edited by
    #1

    I'm trying to write a Qt project in a C++ Jetbrains IDE CLion instead of offical Qt IDE Qt creator due to my personal preference. According to the output in the first figure, this IDE can definitely compile a Qt project with the Qt I downloaded before, but it has only two Qstyle styles. One is "Windows(looks like WIndows 95 to me)" and another one is "Fusion".

    ba26c19b-9daf-4d2b-bd15-caa19fc082ab-图片.png

    Since that I really wnat to make a WIndows vista style software, which I was very familiar with when I was using PySide6 to write GUI before. In second figure, I compiled another project in Qt creator, but somehow it has three Qstyle styles, including the style "Windows Vista" I desired.

    f3fc4b28-bea8-43af-84a4-ce3bf75ea7c7-图片.png

    Can someone be kind enough to tell me what settings or parameters I set casued this kind of odd difference in the number of Qstyle styles.

    My OS is Windows 11 pro 22h2. And the Qt I downloaded is Qt 6.5 LTS MinGW and MSVC.
    I think the Qt environment or tool chains I set for CLion is Qt 6.5.0 MinGW(fig. 3 and fig. 4).

    62f7c763-0336-4526-87eb-e084c65e13ff-图片.png
    b4eecef5-196f-4777-95a8-c78791bcee69-图片.png

    Chris KawaC C 2 Replies Last reply
    0
    • P Peter. P from Nerv

      I'm trying to write a Qt project in a C++ Jetbrains IDE CLion instead of offical Qt IDE Qt creator due to my personal preference. According to the output in the first figure, this IDE can definitely compile a Qt project with the Qt I downloaded before, but it has only two Qstyle styles. One is "Windows(looks like WIndows 95 to me)" and another one is "Fusion".

      ba26c19b-9daf-4d2b-bd15-caa19fc082ab-图片.png

      Since that I really wnat to make a WIndows vista style software, which I was very familiar with when I was using PySide6 to write GUI before. In second figure, I compiled another project in Qt creator, but somehow it has three Qstyle styles, including the style "Windows Vista" I desired.

      f3fc4b28-bea8-43af-84a4-ce3bf75ea7c7-图片.png

      Can someone be kind enough to tell me what settings or parameters I set casued this kind of odd difference in the number of Qstyle styles.

      My OS is Windows 11 pro 22h2. And the Qt I downloaded is Qt 6.5 LTS MinGW and MSVC.
      I think the Qt environment or tool chains I set for CLion is Qt 6.5.0 MinGW(fig. 3 and fig. 4).

      62f7c763-0336-4526-87eb-e084c65e13ff-图片.png
      b4eecef5-196f-4777-95a8-c78791bcee69-图片.png

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Peter-P-from-Nerv "Windows" and "Fusion" are the built-in styles. "WindowsVista" is a style plugin provided via separate dll.
      Available styles are detected at runtime, so missing vista style means your IDE does not deploy plugins to your build directory. You can manually copy the style dll from your Qt installation folder to your build directory or you can use windeployqt to do that for you. You can probably set up a post-build event in your IDE too, so that it runs it for you, although I'm not familiar with CLion enough to tell you how to do that.

      P 1 Reply Last reply
      2
      • P Peter. P from Nerv

        I'm trying to write a Qt project in a C++ Jetbrains IDE CLion instead of offical Qt IDE Qt creator due to my personal preference. According to the output in the first figure, this IDE can definitely compile a Qt project with the Qt I downloaded before, but it has only two Qstyle styles. One is "Windows(looks like WIndows 95 to me)" and another one is "Fusion".

        ba26c19b-9daf-4d2b-bd15-caa19fc082ab-图片.png

        Since that I really wnat to make a WIndows vista style software, which I was very familiar with when I was using PySide6 to write GUI before. In second figure, I compiled another project in Qt creator, but somehow it has three Qstyle styles, including the style "Windows Vista" I desired.

        f3fc4b28-bea8-43af-84a4-ce3bf75ea7c7-图片.png

        Can someone be kind enough to tell me what settings or parameters I set casued this kind of odd difference in the number of Qstyle styles.

        My OS is Windows 11 pro 22h2. And the Qt I downloaded is Qt 6.5 LTS MinGW and MSVC.
        I think the Qt environment or tool chains I set for CLion is Qt 6.5.0 MinGW(fig. 3 and fig. 4).

        62f7c763-0336-4526-87eb-e084c65e13ff-图片.png
        b4eecef5-196f-4777-95a8-c78791bcee69-图片.png

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

        Hi!

        Here's something I found based on @Chris-Kawa's explanation: qt gui theme looks old fashioned.

        P 1 Reply Last reply
        0
        • Chris KawaC Chris Kawa

          @Peter-P-from-Nerv "Windows" and "Fusion" are the built-in styles. "WindowsVista" is a style plugin provided via separate dll.
          Available styles are detected at runtime, so missing vista style means your IDE does not deploy plugins to your build directory. You can manually copy the style dll from your Qt installation folder to your build directory or you can use windeployqt to do that for you. You can probably set up a post-build event in your IDE too, so that it runs it for you, although I'm not familiar with CLion enough to tell you how to do that.

          P Offline
          P Offline
          Peter. P from Nerv
          wrote on last edited by
          #4

          @Chris-Kawa Thank you, your explanation is so helpful to me.

          1 Reply Last reply
          0
          • P Peter. P from Nerv has marked this topic as solved on
          • C CPPUIX

            Hi!

            Here's something I found based on @Chris-Kawa's explanation: qt gui theme looks old fashioned.

            P Offline
            P Offline
            Peter. P from Nerv
            wrote on last edited by
            #5

            @Abderrahmene_Rayene Thank you, that's really helpful.

            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