Style checkbox for a QStandardItem.



  • I have a QStandardItem that at some point I make checkable

    thumbIitem->setCheckable(true);
    

    I would like to use my own icons for the checkbox though.

    The only thing I could find was this answer on SO, but I am not sure how It can be applied in my case.

    Does anyone know how to do this?



  • Hi,

    have you tried to use that solution? What's the results?



  • No I have not. Mostly because I am not sure how.

    Obviously simply typing

    thumbIitem::indicator:checked
      {
        image: url(.../Checkbox_checked_normal.png);
      }
    

    Is not correct.
    Since I have not cared much about stylesheets and appearance until now, I don't know how to proceed.

    Edit:
    Also, Hi :)



  • Hi,

    have a look to QWidget::setStyleSheet()


Log in to reply
 

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