Is there an alternative to QWinTaskbarButton in Qt 6?
-
Hello everybody
in Qt 5 there is the class QWinTaskbarButton which virtualizes the button on the application in the taskbar for Windows OS. One feature of QWinTaskbarButton was to show a progress in the taskbar application button. In Qt 6 this class was removed, but is there an alternative in Qt to do the same without using directly the OS APIs?
Marco -
@marco-beninca71 Looks like there is currently no solution in Qt6.
See https://bugreports.qt.io/browse/QTBUG-94009
https://www.qt.io/blog/qt-extras-modules-in-qt-6 -
Bit of a grave dig and shameless plug, but in case anyone else stumbles upon this, while we wait for Qt6 to add the planned cross platform version of the old QWinTaskbarButton, I have effectively re-implemented the class in a small library:
https://github.com/oblivioncth/Qx
The API is mostly the same as the original, though with minor differences. Primarily, the interface for manipulating the progress indicator was moved into the main button class instead of being a separate one.
See specifically: https://oblivioncth.github.io/Qx/class_qx_1_1_taskbar_button.html