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. mainwindow is looking different for different IDE
Forum Updated to NodeBB v4.3 + New Features

mainwindow is looking different for different IDE

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 770 Views 3 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.
  • MasterQM Offline
    MasterQM Offline
    MasterQ
    wrote on last edited by
    #1

    Hi,

    I just have a small testproject which is compiled by qtcreator and CLion. The result is looking different even if all is done on the same machine..

    qtcreator:
    4731866a-a692-4f42-986a-fca69b77c1ce-grafik.png

    CLion:
    e5bd5f00-5179-4920-826a-c377b6eead04-grafik.png

    it seems that I am missing some settings about Qt themes. While qtcreator is using an own style, CLion is probably using the system theme (KDE).

    But where/how can this be set?

    Joachim

    1 Reply Last reply
    0
    • MasterQM Offline
      MasterQM Offline
      MasterQ
      wrote on last edited by
      #8

      The issue is solved.

      I firstly had installed CLion as a flatpak package. This is not officially supported by jetbrains as I learned. I now switched to snap.

      1 Reply Last reply
      0
      • artwawA Offline
        artwawA Offline
        artwaw
        wrote on last edited by
        #2

        How did you deploy the final executable?

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        0
        • MasterQM Offline
          MasterQM Offline
          MasterQ
          wrote on last edited by
          #3

          it is not deployed yet. I was running it in Debug-Mode.

          1 Reply Last reply
          0
          • artwawA Offline
            artwawA Offline
            artwaw
            wrote on last edited by
            #4

            I'd bet CLion doesn't have some env variables for the executable set, so the executable can't find plugins?

            For more information please re-read.

            Kind Regards,
            Artur

            MasterQM 1 Reply Last reply
            1
            • artwawA artwaw

              I'd bet CLion doesn't have some env variables for the executable set, so the executable can't find plugins?

              MasterQM Offline
              MasterQM Offline
              MasterQ
              wrote on last edited by
              #5

              @artwaw said in mainwindow is looking different for different IDE:

              I'd bet CLion doesn't have some env variables for the executable set, so the executable can't find plugins?

              I don't know. That's why I am asking. Using PyCharm, CLions sibbling for Python, the app is looking like in QtCreator. It's different for CLion and PyCharm. The CLion version is not looking like my global settings in KDE but it seems to be more a fallback theme if others are not found.

              I am not aware of any settings about themes. There must be a global setting as you can see in KDE but also an individual one?

              Deep in my brain I think I can remember about a tool like "global Qt Theme settings" or similar. Is there any Qt package do deal with themes or CSS styles or whatever technique is behind?

              It should be possible not to rely on any unknown settings (especially on Windows) on a machine but to use or set (hardcode) the visual look in the project itself! I cannot find any hint about.

              1 Reply Last reply
              0
              • artwawA Offline
                artwawA Offline
                artwaw
                wrote on last edited by
                #6

                If you're looking for a uniform styling then QML comes to mind - QtWidgets is designed to follow the system theme.

                Plugins locations and how to override them: https://doc.qt.io/qt-6/qt-conf.html && https://doc.qt.io/qt-6/deployment-plugins.html - there is also a note about env var you can set? And others you can examine.

                Styles, should you decide to create your own: https://doc.qt.io/qt-6/style-reference.html

                Also worth reading https://doc.qt.io/qt-6/linux-deployment.html

                Perhaps someone who's more knowledgeable on Linux platform than I am can advise further.

                For more information please re-read.

                Kind Regards,
                Artur

                1 Reply Last reply
                1
                • aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by aha_1980
                  #7

                  @MasterQ You could try to set the env variable QT_DEBUG_PLUGINS in the IDEs run settings and compare the application outputs.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0
                  • MasterQM Offline
                    MasterQM Offline
                    MasterQ
                    wrote on last edited by
                    #8

                    The issue is solved.

                    I firstly had installed CLion as a flatpak package. This is not officially supported by jetbrains as I learned. I now switched to snap.

                    1 Reply Last reply
                    0
                    • MasterQM MasterQ has marked this topic as solved on

                    • Login

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