Unsolved How to create labels at run time
I have an array that gets populated based on the name of the processes at run time.For each process that is running I want to create a label and checkbox how can I do it using PyQT.I was able to do this in tkinter by using a for loop but dont know regarding Pyqt?
JonB last edited by
for name in array_of_names: label = QLabel(name, self) checkbox = QCheckBox(name, self) # do something with these, like add them to your layout ...
As @Denni-0 says, you might to create a "composite"
QWidgetwhich holds both the label & the checkbox, laid out as desired, rather than keeping them as separate widgets.