QtWinExtras TaskbarButton Progress not turning red
Hi,
For some reason I can't set the programs taskbar progress indicator red as documented here and here. Setting paused to true
works fine by turning the color yellow.
Code:
import QtWinExtras 1.0
ApplicationWindow{
...
TaskbarButton{
id: taskbar
progress.visible: true
progress.stopped: true // should turn it red
progress.value: 95
}
...
}
The runtime output is: qrc:/main.qml:8 Invalid property assignment: "stopped" is a read-only property
How can I see inside the QtWinExtras module to make sure how it is defined?
The Qt version I am using is: 5.4.1
Re: QtWinExtras TaskbarButton Progress not turning red
It is defined as a read only (const bool) value (QWinTaskbarProgress::stopped).
Re: QtWinExtras TaskbarButton Progress not turning red
I see.
Then there's also the
Code:
void QWinTaskbarProgress::stop()
in C++
Can I call this from QML somehow?
Re: QtWinExtras TaskbarButton Progress not turning red
No idea :) I would probably report a bug about an incomplete API (in my opinion stopped in QML shouldn't be read-only).
Re: QtWinExtras TaskbarButton Progress not turning red
Thanks for confirming. I'll report it.
Re: QtWinExtras TaskbarButton Progress not turning red
stop() is a slot, it should be callable from QML.
Cheers,
_
Re: QtWinExtras TaskbarButton Progress not turning red
Yep. It works. It's not documented still (yet).
Also the other slots seem to be there actually.
Re: QtWinExtras TaskbarButton Progress not turning red
What do you mean it is not documented?
I see stop() being documented right here: http://doc.qt.io/qt-5/qwintaskbarprogress.html#stop
Cheers,
_