Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Title bar customization
Forum Update on Monday, May 27th 2025

Title bar customization

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 5 Posters 3.4k Views
  • 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
    Vijaykarthikeyan
    wrote on 30 Oct 2023, 13:50 last edited by
    #1

    I have been using ApplicationWindow element in QML..

    For that ,I have added icon and title text for the title bar in QML..

    But,that text is like a normal one and not so much attracting.. I want to customize the title bar..Can i do that..is it possible to custimizes and styling the title bar in qml..Im using Qt 5.15.2

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Boucher65
      wrote on 4 Nov 2023, 12:34 last edited by
      #2

      you can customize and style the title bar in QML using the ApplicationWindow element. In Qt 5.15.2, you have the flexibility to make it more attractive and appealing to your design preferences.

      V 1 Reply Last reply 6 Nov 2023, 04:54
      0
      • B Boucher65
        4 Nov 2023, 12:34

        you can customize and style the title bar in QML using the ApplicationWindow element. In Qt 5.15.2, you have the flexibility to make it more attractive and appealing to your design preferences.

        V Offline
        V Offline
        Vijaykarthikeyan
        wrote on 6 Nov 2023, 04:54 last edited by
        #3

        @Boucher65 any Qt documentation available? As I have gone through the documnetation,there has a menubar styling,toolbar and status bar..but,i have not seen ant title bar related documents.

        J 1 Reply Last reply 6 Nov 2023, 06:28
        0
        • V Vijaykarthikeyan
          6 Nov 2023, 04:54

          @Boucher65 any Qt documentation available? As I have gone through the documnetation,there has a menubar styling,toolbar and status bar..but,i have not seen ant title bar related documents.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 6 Nov 2023, 06:28 last edited by
          #4

          @Vijaykarthikeyan Window decorations including title bar is handled by the OS (window manager), not Qt. If you want custom window decorations/title bar you can implement frameless window and draw title bar by yourself. Take a look at https://github.com/imitatehappiness/QtCustomTitleBar

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

          V 1 Reply Last reply 6 Nov 2023, 07:01
          1
          • J jsulm
            6 Nov 2023, 06:28

            @Vijaykarthikeyan Window decorations including title bar is handled by the OS (window manager), not Qt. If you want custom window decorations/title bar you can implement frameless window and draw title bar by yourself. Take a look at https://github.com/imitatehappiness/QtCustomTitleBar

            V Offline
            V Offline
            Vijaykarthikeyan
            wrote on 6 Nov 2023, 07:01 last edited by
            #5

            @jsulm But, Qt provides many native functions itself,right? like restore,minimize,maximizwe,close, by double clicking to minimize/maximize,dragging the title bar by mouse drag,etc., So ,if we customize ,we have to implement by our own ..Am i right?

            J 1 Reply Last reply 6 Nov 2023, 07:04
            0
            • V Vijaykarthikeyan
              6 Nov 2023, 07:01

              @jsulm But, Qt provides many native functions itself,right? like restore,minimize,maximizwe,close, by double clicking to minimize/maximize,dragging the title bar by mouse drag,etc., So ,if we customize ,we have to implement by our own ..Am i right?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 6 Nov 2023, 07:04 last edited by
              #6

              @Vijaykarthikeyan said in Title bar customization:

              Qt provides many native functions itself,right? like restore,minimize,maximizwe,close, by double clicking to minimize/maximize,dragging the title bar by mouse drag,etc

              There are methods in Qt for restoring, minimising and closing. Window decorations and title bar are not handled by Qt...

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

              V 1 Reply Last reply 6 Nov 2023, 07:05
              1
              • J jsulm
                6 Nov 2023, 07:04

                @Vijaykarthikeyan said in Title bar customization:

                Qt provides many native functions itself,right? like restore,minimize,maximizwe,close, by double clicking to minimize/maximize,dragging the title bar by mouse drag,etc

                There are methods in Qt for restoring, minimising and closing. Window decorations and title bar are not handled by Qt...

                V Offline
                V Offline
                Vijaykarthikeyan
                wrote on 6 Nov 2023, 07:05 last edited by
                #7

                @jsulm Yes..I understood, we can't modify inbuilt title bar from Qt..Thank you

                1 Reply Last reply
                0
                • V Vijaykarthikeyan has marked this topic as solved on 6 Nov 2023, 07:05
                • S Offline
                  S Offline
                  SabrinaS
                  wrote on 23 Feb 2024, 11:17 last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mathewwewewew
                    wrote on 27 Feb 2024, 11:43 last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0

                    7/9

                    6 Nov 2023, 07:05

                    • Login

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