Styling QToolBox's title



  • how can I style QToolBox titles?

    I used this but it didn't work

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



  • 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;
    }@



  • 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]



  • Any suggestion guys?
    Thanks in advance


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.