Important: Please read the Qt Code of Conduct -

Stylesheet of QToolBox

  • I want change Icone of tab from QToolBox when one page is selected.
    I worte :

         icon-size: 40px;
    	 background: #1E2736;
    QToolBox QScrollArea>QWidget>QWidget
        background: #1E2736;
    QToolBox::tab {
        background-color: qlineargradient(x1: 0, y1: 0, x2: 0.33, y2: 0, 
                stop: 0 #1f2837, stop: 1 #1e4562);
        border-radius: 10px;
    	color: rgb(63, 85, 101);
    	font: 17pt "Utsaah";
    // this doesn't work.
    QToolBox  QToolBoxButton{
    	image: url(:/icones/deleteRed);
    QToolBox::tab:selected { 
        font: italic;
        color: white;

    I have tried through QtDesigner with property of QToolBox but nothing happend.

  • its not image. Its
    background-image: url("/blabla.jpg");

  • I want change image of QIcon at left; the background-image put the image at middle.

Log in to reply