QProgressbar how image
General and Desktop
4
Posts
2
Posters
1.8k
Views
1
Watching
-
@
progressBar->setStyleSheet("QProgressBar::chunk { background-image: url(/path/image.png); }");
@ -
When I change image to ProgressBar i see this picture !http://zapodaj.net/9bfab24ee6fcc.png.html()! Where is path to add image , because now is empty :(
-
This uses "Qt resource system":http://qt-project.org/doc/qt-5/resources.html
i.e. you need to put your image in the resource file first and it will be compiled into your exe.
Using images from outside with relative or absolute paths is a bad idea because the paths will change on another user computer, but if you still want to use it just type it in by hand and not using resource selector.