Animated Button Border
Unsolved
QML and Qt Quick
-
wrote on 10 Apr 2018, 12:09 last edited by VAIBHAVSRI 4 Nov 2018, 05:34
-
There is no straightforward API for this. I see several possibilities:
- custom painting in QQuickPaintedItem
- custom painting in QQuickItem
- custom painting via GL shaders
- custom painting in QML Canvas
- a set of 4 animated Rectangle components, simulating the line. An ugly solution, but probably the easiest to do
Perhaps BorderImage component can be forced to do an animation like that, but I doubt it.
2/2