Unsolved QT I want to add icon dynamically
-
I want to set the icon of a button dynamically and that icon is fixed for every system. An example I have fix icon in my system and the same icon is open in another system when I am sending the release file including icon folder to another user. I am using QT5.10.1 and window 10.
-
So you want an image included in your binary, but dynamic based on something? States and transitions sounds the way.
https://qmlbook.github.io/en/ch05/index.html#states-and-transitions
References:
http://doc.qt.io/qt-5/qtquick-statesanimations-animations.html
http://doc.qt.io/qt-5/qml-qtquick-propertyaction.html
http://doc.qt.io/qt-5/qml-qtquick-propertyanimation.html -
@6thC
But he did not say using QML. -
This is true, but I don't see any widget code either...
[edit]clafication: I was telling him a way, not every way and the technology was ambiguous at the moment[/]