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. Preserve windows 10 style
Forum Updated to NodeBB v4.3 + New Features

Preserve windows 10 style

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

    My app looks a lot different on windows 11 with rounded edges and ugly UI elements. Is there a way to fix the style of my app so that it stays the same no matter if its on windows 11 or 10. Some of my UI elements have stylesheets and some are default.

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

      Hi,

      You could use the fusion style.

      Depending on your stylesheet customization, you might want to consider writing your own style/proxy style.

      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
      • G Grand_Titan

        My app looks a lot different on windows 11 with rounded edges and ugly UI elements. Is there a way to fix the style of my app so that it stays the same no matter if its on windows 11 or 10. Some of my UI elements have stylesheets and some are default.

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

        Further to @SGaist's suggestion, AFAICT you are stuck with the rounded corners of application top-level windows: that is the domain of Windows "UX" not Qt.

        S 1 Reply Last reply
        0
        • C ChrisW67

          Further to @SGaist's suggestion, AFAICT you are stuck with the rounded corners of application top-level windows: that is the domain of Windows "UX" not Qt.

          S Offline
          S Offline
          SamiV123
          wrote on last edited by
          #4

          @ChrisW67

          https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/nf-dwmapi-dwmsetwindowattribute

          I don't do so much windows dev these days but I seem to recall you could also control this with those manifest files.

          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