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. Change Window title bar color in windows
Forum Updated to NodeBB v4.3 + New Features

Change Window title bar color in windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 36.3k 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.
  • T Offline
    T Offline
    Tirupathi Korla
    wrote on last edited by
    #1

    Hi,
    We are developing a desktop application for windows in Qt and we want to set a color to window title bar. If window title bar color is OS specific, can anyone guide us with native windows API to change color of windows title bar.

    Thanks
    Tirupathi

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

      Hi,

      That's a question better asked on Microsoft's forum.

      A quick search returns the SetSysColors method which is likely what you are looking for.

      Hope it helps.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      3
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Title bar is drawn by windows and you cannot change it from Qt.

        However, you can do it natively
        https://stackoverflow.com/questions/32310316/setting-title-bar-and-border-colors-programmatically

        T 1 Reply Last reply
        5
        • SGaistS SGaist

          Hi,

          That's a question better asked on Microsoft's forum.

          A quick search returns the SetSysColors method which is likely what you are looking for.

          Hope it helps.

          T Offline
          T Offline
          Tirupathi Korla
          wrote on last edited by
          #4

          @SGaist thanks

          1 Reply Last reply
          1
          • mrjjM mrjj

            Hi
            Title bar is drawn by windows and you cannot change it from Qt.

            However, you can do it natively
            https://stackoverflow.com/questions/32310316/setting-title-bar-and-border-colors-programmatically

            T Offline
            T Offline
            Tirupathi Korla
            wrote on last edited by
            #5

            @mrjj thanks

            1 Reply Last reply
            1
            • C CPPUIX referenced this topic on

            • Login

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