Hi,
First of all thanks for replying to the thread.
I am really new in Pyside2 , so I am making some mistakes here and there.
Thanks again for the QListWidget idea. I was unaware of it.
I am basically trying to create QLabels to populate some data.
Hi,
First of all thanks for replying to the thread.
I am really new in Pyside2 , so I am making some mistakes here and there.
Thanks again for the QListWidget idea. I was unaware of it.
I am basically trying to create QLabels to populate some data.
Seems like you think that the only tool in your toolbox is a QLabel hammer and any time you want to display text, that's the tool your reach for.I am basically trying to create QLabels to populate some data.
Before reaching for the hammer, take some time to look at the many, many examples and tutorials in the Qt documentation, especially the Widgets examples. If you see something that looks good to you, look at the source code to see how they did it.
The mapping between the C++ and Pyside2 / PyQt5 APIs is very close, so you should be able to read the C++ code and understand it without too much trouble.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
supratik (20th October 2020)
Yes I agree this hammer comes first to mind of novice like me.
I will go through the examples before deciding on widgets again , as QListWidget saved my day![]()
Bookmarks