
QProgressIndicator
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
The QProgressIndicator class lets an application display a progress indicator to show that a lengthy task is under way.
Will work at any size.
Depends on Qt 4.4.x.
The source code is hosted on Github.
https://github.com/mojocorp/QProgressIndicator
9 years ago
v1.0.2
-added isAnimated accessor
-added isDisplayedWhenStopped/setDisplayedWhenStopped accessors
-added color/setColor accessors
-added doxygen documentation
v1.0.1
-initial revision
9 years ago
v1.0.2
-added isAnimated accessor
-added isDisplayedWhenStopped/setDisplayedWhenStopped accessors
-added color/setColor accessors
-added doxygen documentation
v1.0.1
-initial revision
geotavros
10 years ago
Report
gokmen
10 years ago
Cheers,
[1] http://svn.pardus.org.tr/uludag/trunk/pds/pds/qprogressindicator.py
Report
geekgyrl
10 years ago
life saver) and tried to compile it.
Realized that I needed at minimum qt-4.4.
Might be goog to update the "Depends on"
line to state min. = qt-4.4.
Report
oseias
10 years ago
I'm currently using this tool and I added a grayscale (I called it a grayscale but it's in fact an alphascale). That scale will make the animation all in same colour when it's not running.
to do that I just added these two methos to the cpp file:
bool QProgressIndicator::isGrayscale () const
{
return m_grayscale;
}
void QProgressIndicator::setGrayscale( bool isGrayscale )
{
m_grayscale = isGrayscale;
}
and changed this line at the paint event:
from: color.setAlphaF(1.0f - (i/12.0f));
to: color.setAlphaF( ( isAnimated() || !m_grayscale ? ( 1.0f - ( i/12.0f ) ) : 0.2f ) );
hope this helps :)
Report
GarryTheHotDog
11 years ago
//----------------
void setRange(int maxValue, int minValue);
//-----
void setCurrentValue(int Value);
void ShowProgressText(bool AStatus);
-------
thank's;
Report
daimonKor
11 years ago
Report
AlexBSnet
11 years ago
Report
GarryTheHotDog
11 years ago
void setColor(QColor color)
// seting color of indicator
and
bool isAnimated( or getAnimationStatus )
//geting status of animation
---------
thank's
Report
GarryTheHotDog
11 years ago
Report
mojo2000
11 years ago
Report