Your problem has nothing to do with Qt, but with basic programming knowledge.
This type of a problem is outside the scope of this forum.
To make my point, can you explain in words what this snippet of your code is doing?
Qt Code:
tmod = open('list.txt', 'r') for i in range(4): cb.addItem(str(i)) tmodel.close()To copy to clipboard, switch view to plain text mode
Bookmarks