Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.4.2
-
None
-
Compilation is 5.4.2 from the mxe.cc project (meaning a mingw cross compiler on Linux).
-
1ce490ca9279d60ab404310fa00c91863b06c3ab (qtwinextras/5.5, 8.7.2015)
Description
The taskbar button requires the window handle to be set with a call to button->setWindow(mainWin->windowHandle()). This doesn't work if it's called from mainWin's constructor.
It's possible it doesn't work until mainWin itself has been shown.
See http://stackoverflow.com/questions/25916966/what-am-i-doing-wrong-with-qwintaskbarprogress
Neither the documentation for QWinTaskbarButton (neither the example code nor QWinTaskbarButton::setWindow()) nor the documentation for QWidget::windowHandle() mentions anything about this.
Figuring this out the hard way is very difficult and time-consuming.