Answer the question
In order to leave comments, you need to log in
QWinTaskBarProgress not working, what am I doing wrong?
Good day!
QWinTaskBarProgress not working, what am I doing wrong?
There is a gui class. It has QWinTaskbarButton and QWinTaskbarProgress fields. Initialized them in the constructor like this:
if (QtWin::isCompositionEnabled())
QtWin::extendFrameIntoClientArea(this, 0, 0, 0, 0);
else
QtWin::resetExtendedFrame(this);
taskBarButton = new QWinTaskbarButton(this);
taskBarButton->setWindow(windowHandle());
taskBarProgress = taskBarButton->progress();
taskBarProgress->setVisible(true);
taskBarProgress->setRange(0, size * 2);// size - переменная int
taskBarProgress->setValue(size);
taskBarProgress->setVisible(true);
taskBarProgress->show();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question