Conversation
|
Amazing stuff @slidinghotdog A handy trick that you can use for future is: You could use For example: and So you could just call this.property("propertyname", propertyvalue) and that should do. This will save some time :) Thanks for the PR. Merging this. |
|
Nice, i'll try that next time, looks like i can also use |
|
Yes that is correct. |
|
@master-atul i'm trying to use nodegui/src/lib/QtCore/QVariant.ts Line 29 in a8cc7d9 |
|
Hey @slidinghotdog
But also sometimes you need to get back complex objects like QRect, QPixmap, etc,, For these you would need to use the respective static methods like this.
etc. |
|
@master-atul i was referring to the TS types here: nodegui/src/lib/QtCore/QVariant.ts Line 23 in a8cc7d9 shouldn't they be changed? |
|
@slidinghotdog Thats definetly a mistake 🙈 Thanks for pointing out! |
|
Fixed in #255 |
Only for strings for now, demo shows most functions,
setMaxVisibleItemsonly works when editable is true (according to Qt docs looks like it is the native behavior)