Hi Wysota,
You absolutely right !
Indeed it has nothing to do with the progressBar, but instead i am applying a Qpalette to change the highlight color of the progress bar !
Once i do this, when i run the application, it no longer shows the progressbar progressing !
Can you shed some light ?
Once i comment out my attempts to change the color, it works as expected !
//QPalette pal;
//QColorGroup cg;
//cg.setColor( QColorGroup::Foreground, white );
//cg.setColor( QColorGroup::Background, black );
//cg.setColor( QColorGroup::Highlight, white );
//cg.setColor( QColorGroup::HighlightedText, white );
//cg.setColor( QColorGroup::Text, white );
//pal.setActive( cg );
pb
->setGeometry
( QRect( 10,
130,
370,
24 ) );
//pb->setPalette( pal );
//QPalette pal;
//QColorGroup cg;
//cg.setColor( QColorGroup::Foreground, white );
//cg.setColor( QColorGroup::Background, black );
//cg.setColor( QColorGroup::Highlight, white );
//cg.setColor( QColorGroup::HighlightedText, white );
//cg.setColor( QColorGroup::Text, white );
//pal.setActive( cg );
pb = new QProgressBar( this, "pb" );
pb->setGeometry( QRect( 10, 130, 370, 24 ) );
//pb->setPalette( pal );
To copy to clipboard, switch view to plain text mode
Bookmarks