QT6 progressbar -The running display effect of QT6 progressba is different
-
The picture above is the effect of progressbar on QT6.6.3 and QT5
The picture above is the effect of progressbar running in QT6.6.3 or above, but the displayed outer frame is gone, and the green progress display in the middle only becomes a line. I don’t know how to solve this running display problem on higher versions of QT6? -
I have tried win10 and win11, but nothing is the same. The same layout works fine in QT6.6.3 and below, but it will be like this in higher versions. I wonder if the progressbar has been upgraded in higher versions. Is this how the current version runs? But the display is different from before? It looks different and I'm not used to it.
-
It's the windows11 style progress bar.
If you want to use the windowsvista style then pass it as parameter to your executable or hard-code it: https://doc.qt.io/qt-6/qstyle.html#details -
@Christian-Ehrlicher How to make progressbar use windows vista style? Is there any specific code?
-
@zj4068 Check the documentation: https://doc.qt.io/qt-6/qapplication.html#setStyle
-
@zj4068 said in QT6 progressbar -The running display effect of QT6 progressba is different:
How to make progressbar use windows vista style? Is there any specific code?
So hard to click on my link and read three sentences?
-
One advantage of Qt is that it has a native look on Windows on macOS. You might not like the choices Microsoft made, but in general it is a good idea to just adsorb the change. In the long run it will be less confusing to your users if you app (written in Qt) looks the same as every other app on Windows.