I hope you like the format of these tutorials!
I’ll be posting them on my blog from now on so I have them all in a single place instead of making new thread for each video.
I hope you enjoy it, and please tell me what you think about them on this thread, I would love to improve on what I lack
Best regards Yaz!
Forecast: Part 08 : Learning about dragging, dropping items. Understanding mimetypes and serializing, unserializing data to and from draggable format etc. Part 09 : Learning about Qt Delegates and their roles in Model View. (Painting ITEMS, providing editors etc) using QItemDelegate Part 10 : Building our own DYNAMIC PROPERTIES GRID with what we have learned so far, using a QTreeView
note : List might change as I work on the tutorials… and more will be added later
I’ve split Part 2 into 3 videos. Single (LIST), Multi (TABLE) dimensional and Hierarchical data (TREE).
Part 2.1 will be up tomorow talking about how a view and model communicates with each other, we will also create our first model which is initially read only, and then we’re gonna make it editable and in the end you’ll know exactly how to create your own Single dimensional Models.
Great thank you, there is a good deal of effort involved in this type of thing it is much appreciated.
If you are keeping the source it could be good to convert for popular smart phones.
I find having the Python Osmosis series a handy thing to have on my iphone for quick refreshers in certain topics as I’m still learning and advancing into python.
I know I’m late, and I’m sorry for that! But I was very busy. Better late than never
That’s also the reason why I haven’t uploaded the mobile versions. I’ll see if I can convert them all tomorow
In video 02_1, when you add the def data to the model and return the string “Hardcoded”, it wouldn’t display that string for me. I had to wrap the string in QtCore.QVariant(“HardCoded”), to get it to work. Just curious why that is and what a QVariant is? Thanks!
Hey! QVariant is a value container. It allows you to store a single value, and the type of that value is described by the type() method. This is needed for Qt properties and also databases etc. It’s basicaly a wrapper for your data, and has alot of common methods such as convert and used by Qt everywhere almost…
The reason you had to supply a QVariant(“Hardcoded”) is probably because your PyQT version doens’t match mine.
I believe I saw somewhere in the update log that QVariants where automated. So instead of having to write QtCore.QString(“Hardcoded”) I could write “Hardcoded” and it would know that the python string should be a QtCore.QString object