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. Styling QToolBox's title
Forum Updated to NodeBB v4.3 + New Features

Styling QToolBox's title

Scheduled Pinned Locked Moved General and Desktop
4 Posts 1 Posters 5.4k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    how can I style QToolBox titles?

    I used this but it didn't work

    @QToolBox::title {
    text-align: center;
    }@

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbnoimi
      wrote on last edited by
      #2

      I'll bring this thread to the life :)

      I fixed this issue by using the following style:
      @QToolBox::tab {
      background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
      stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
      stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
      border-radius: 5px;
      color: darkgray;
      }

      QToolBox::tab:selected {
      color: black;
      }@

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbnoimi
        wrote on last edited by
        #3

        Back from the death once again :( Mistakenly I thought this issue has been fixed!!!

        I couldn't set the title of the QToolBox tab in the center... How can I do it?

        [code]QToolBox::tab {
        background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
        stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
        stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
        border-radius: 3px;
        text-align: right;
        }

        QToolBox::tab::title {
        text-align: right;
        }[/code]

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbnoimi
          wrote on last edited by
          #4

          Any suggestion guys?
          Thanks in advance

          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