Progress bar is not smooth
-
Try this in xml
import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow { id: root visible: true minimumWidth: 840 minimumHeight: 600 property real prgVal1:100 function updateProgress(){ if(prgVal1>0){ prgVal1 -= 0.1 } else{ prgVal1 = 100 } progressBar1.value = prgVal1 console.log("prgVal1 = ", prgVal1); } Timer{ id:timProgress interval: 10 running: true repeat: true onTriggered: { updateProgress() } } ProgressBar{ id: progressBar1 visible: true width: 600 height: 60 x: 20 y: 50 value: 100 from: 0 to: 100 } }
-
@Witc said in Progress bar is not smooth:
It Still "jumps"...
what is the System configuration of yours: RAM, Processor and OS?
@dan1973 said in Progress bar is not smooth:
@Witc said in Progress bar is not smooth:
It Still "jumps"...
what is the System configuration of yours: RAM, Processor and OS?
Now I tried the same app on my friends PC (Ubuntu)- and it works great.
On my Windows 10, Dell, intel i7, 16GB RAM it is jagging -
@Witc said in Progress bar is not smooth:
On my Windows 10, Dell, intel i7, 16GB RAM it is jagging
your config above is Good Enough. Normally Qt requires min 4GB and 16GB will be enough to run any graphics. when you say intel i7 what's the processor speed.
You should check if any background process keeps windows busy in providing priority to your app. normally windows OS guarantees for more than 20ms.
if its over please mark solved. or any questions you can ask?
-
@Witc said in Progress bar is not smooth:
On my Windows 10, Dell, intel i7, 16GB RAM it is jagging
your config above is Good Enough. Normally Qt requires min 4GB and 16GB will be enough to run any graphics. when you say intel i7 what's the processor speed.
You should check if any background process keeps windows busy in providing priority to your app. normally windows OS guarantees for more than 20ms.
if its over please mark solved. or any questions you can ask?
@dan1973 said in Progress bar is not smooth:
if its over please mark solved. or any questions you can ask?
unfortunatelly I have no idea how to solve it on my Computer, @ndias has the same problem as me, so ther is probably some bug in some verision of Qt? Python?....
-
@Witc said in Progress bar is not smooth:
probably some bug in some verision of Qt?
which Qt version r u using? and which compiler?
@dan1973 said in Progress bar is not smooth:
@Witc said in Progress bar is not smooth:
probably some bug in some verision of Qt?
which Qt version r u using? and which compiler?
QT 6.3.1:
-
@dan1973 said in Progress bar is not smooth:
@Witc said in Progress bar is not smooth:
probably some bug in some verision of Qt?
which Qt version r u using? and which compiler?
QT 6.3.1:
-
@Witc This does not answer the question which compiler you're using as you installed Qt for ARM64, MSVC2019, WebAssembly, Android and MinGW...
@jsulm said in Progress bar is not smooth:
@Witc This does not answer the question which compiler you're using as you installed Qt for ARM64, MSVC2019, WebAssembly, Android and MinGW...
I am using Qt along with python 3.10 + Pyside6. No any line of my code is written in C/C++ ...
-
Tried it on Qt 5.15, and it works perfectly