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. QTabWidget and multi color title

QTabWidget and multi color title

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.9k 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.
  • K Offline
    K Offline
    Kiut
    wrote on last edited by
    #1

    How can i get this ? I want to change the color of the current tab in a multi color way .

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kiut
      wrote on last edited by
      #2

      QTabWidget* sorry

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chris H
        wrote on last edited by
        #3

        You can use setTabTextColor on the QTabBar widget.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kiut
          wrote on last edited by
          #4

          When i use it, it set one color to the text but i want to st multi color for the text like grey and black

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kiut
            wrote on last edited by
            #5

            up pls

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              [quote author="Kiut" date="1324270908"]up pls[/quote]

              It is not acceptable to "up" your topic so soon. Allow for at least a couple of days for people to respond. Note that users are spread around the globe, and the means different time zones...

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #7

                [quote author="Kiut" date="1324237629"]When i use it, it set one color to the text but i want to st multi color for the text like grey and black[/quote]
                There is no default functionality in Qt for that. You will need to subclass and render the text yourself (perhaps via QTextDocument?)

                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