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 ugly after update.
Forum Updated to NodeBB v4.3 + New Features

Qt ugly after update.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 916 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.
  • posktomtenP Offline
    posktomtenP Offline
    posktomten
    wrote on last edited by
    #1

    I have come across something strange.
    This only applies to Windows, not Linux.
    If I force

    QApplication::setStyle(QStyleFactory::create("Fusion"));
    

    using style Fusion it will be as expected.
    If I use default style ("winndows11" for Qt6 and "windowsvista" for Qt5 I think).

    Before updating from Qt Creator 14.0.1 to 14.0.2 it looks like this
    Qt6.7.3_Creator14.0.1.png
    Qt6.7.3

    Qt5.15.15_Creator14.0.1.png
    Qt5.15.15

    And after updating to Qt Creator 14.0.2
    Qt6.7.3_Creator14.0.2.png
    Qt6.7.3

    Qt5.15.15_Creator14.0.2.png
    Qt5.15.15

    It can hardly have anything to do with Qt Creator, it does not help to downgrade Ct Creator.
    But something must have happened.
    Does anyone else recognize this?

    posktomten

    1 Reply Last reply
    0
    • posktomtenP Offline
      posktomtenP Offline
      posktomten
      wrote on last edited by
      #2

      Sorry, I was a little too quick. This solved the problem.

      if((currentstyle == "fusionStyle") || (currentstyle == "fusionDarkStyle")) {
              QApplication::setStyle(QStyleFactory::create("Fusion"));
          } else {
              QApplication::setStyle(QStyleFactory::create("windows11"));
          }
      

      But I still don't understand what happened.

      posktomten

      Pl45m4P 1 Reply Last reply
      0
      • posktomtenP posktomten has marked this topic as solved on
      • posktomtenP Offline
        posktomtenP Offline
        posktomten
        wrote on last edited by posktomten
        #3

        The error:

        QApplication::setDesktopSettingsAware(false);
        

        posktomten

        1 Reply Last reply
        0
        • posktomtenP posktomten

          Sorry, I was a little too quick. This solved the problem.

          if((currentstyle == "fusionStyle") || (currentstyle == "fusionDarkStyle")) {
                  QApplication::setStyle(QStyleFactory::create("Fusion"));
              } else {
                  QApplication::setStyle(QStyleFactory::create("windows11"));
              }
          

          But I still don't understand what happened.

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by Pl45m4
          #4

          @posktomten said in Qt ugly after update.:

          But I still don't understand what happened.

          Search for existing bug reports.
          Don't know if everything got fixed already, but there were a lot of graphic bug with the Fusion and Windows 11 style in Qt 6.7
          I case you face issues, it's suggested to use vista style or something else, until everything works as expected again.

          • https://forum.qt.io/topic/153499/fusion-and-windows11-style-currently-broken-in-qt-6-7beta1

          QtCreator has nothing to do with it.


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          1
          • posktomtenP Offline
            posktomtenP Offline
            posktomten
            wrote on last edited by
            #5

            Thanks @Pl45m4 !

            posktomten

            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