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
QtWS25 Last Chance

Title bar customization

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 5 Posters 3.3k 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 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 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
      0
      • B Boucher65

        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 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.

        jsulmJ 1 Reply Last reply
        0
        • V Vijaykarthikeyan

          @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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          1
          • jsulmJ jsulm

            @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 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?

            jsulmJ 1 Reply Last reply
            0
            • V Vijaykarthikeyan

              @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?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              1
              • jsulmJ jsulm

                @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 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
                • S Offline
                  S Offline
                  SabrinaS
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mathewwewewew
                    wrote on last edited by
                    #9
                    This post is deleted!
                    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