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. Changing color of window qt caption
Qt 6.11 is out! See what's new in the release blog

Changing color of window qt caption

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 2.5k Views 1 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.
  • V Offline
    V Offline
    vidisha
    wrote on last edited by
    #1

    Hi,
    Is it possible to change the color of window qt caption??
    I mean the blue color at the top of the GUI..
    I use qt 5.5 , windows 7.

    Regards
    vidisha

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • V vidisha

      Hi,
      Is it possible to change the color of window qt caption??
      I mean the blue color at the top of the GUI..
      I use qt 5.5 , windows 7.

      Regards
      vidisha

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @vidisha Do you mean the title bar of the window? I don't think you can do it using Qt.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 2 Replies Last reply
      3
      • V vidisha

        Hi,
        Is it possible to change the color of window qt caption??
        I mean the blue color at the top of the GUI..
        I use qt 5.5 , windows 7.

        Regards
        vidisha

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by J.Hilk
        #3

        @vidisha How the title bar is managed/painted comes directly from the OS-you're using. SO there is no predefined Qt-Way to change that.

        But, I blieve you can simply set the Qt::FramelessWindowHint flag and substitute the predefined 'topbar' with a custom widget.
        Or look into your OS-documentation and search for the way to change the native event via external (cpp) event :)


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @vidisha Do you mean the title bar of the window? I don't think you can do it using Qt.

          V Offline
          V Offline
          vidisha
          wrote on last edited by
          #4

          @jsulm
          0_1495453029918_D1.png
          i marked with red color arrow about what i'm asking..
          In the screen shot the first Gui is an example one & behind it is mine Gui,
          & i want to change the color of title bar where minimize & close options are there.

          Thanks
          Vidisha

          jsulmJ 1 Reply Last reply
          0
          • V vidisha

            @jsulm
            0_1495453029918_D1.png
            i marked with red color arrow about what i'm asking..
            In the screen shot the first Gui is an example one & behind it is mine Gui,
            & i want to change the color of title bar where minimize & close options are there.

            Thanks
            Vidisha

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @vidisha Sorry, but image sharing is usually not working in this forum - I cannot see any screen-shots. You can upload the screen-shots to an image sharing service and paste the link here.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            V 1 Reply Last reply
            1
            • Pradeep KumarP Offline
              Pradeep KumarP Offline
              Pradeep Kumar
              wrote on last edited by Pradeep Kumar
              #6

              @vidisha

              use https://postimg.cc/
              http://imgur.com/upload to upload the image and provide the link to the users.

              Thanks,

              Pradeep Kumar
              Qt,QML Developer

              1 Reply Last reply
              1
              • jsulmJ jsulm

                @vidisha Do you mean the title bar of the window? I don't think you can do it using Qt.

                V Offline
                V Offline
                vidisha
                wrote on last edited by
                #7

                @jsulm Hi,
                I don't know what it is eaxctly called.. but where the options like minimize is there, i mean that..

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vidisha
                  wrote on last edited by
                  #8

                  http://imgur.com/a/AV5LD
                  Please find the attached image.

                  1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @vidisha Sorry, but image sharing is usually not working in this forum - I cannot see any screen-shots. You can upload the screen-shots to an image sharing service and paste the link here.

                    V Offline
                    V Offline
                    vidisha
                    wrote on last edited by
                    #9

                    @jsulm
                    http://imgur.com/a/AV5LD

                    jsulmJ 1 Reply Last reply
                    1
                    • V vidisha

                      @jsulm
                      http://imgur.com/a/AV5LD

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @vidisha What you want to do is not covered by Qt - you will need to use native API.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      2

                      • Login

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