Is there a way to implement checkbox with image? I want to create side bar with the list of checkbox with images, like i did it here with html, css and js:
The style is not important, first of all I want to know how to make the functionality. Thanks in advance!
Update #2
import sys
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()
layout = QVBoxLayout()
frame = QtWidgets.QFrame()
frame.setFrameShape(QFrame.StyledPanel)
frame.setLayout(layout)
layout.addWidget(frame)
cb = QCheckBox('Yes', frame)
layout.addWidget(cb)
lb = QLabel("Do you like programming?", cb)
lb.setPixmap(QPixmap("26.png"))
layout.addWidget(lb)
window.setLayout(layout)
window.show()
app.exec()