⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

Busy progressbar not working in gtk2 style

  • I have been playing around with the QProgressBar, which allows you to use it as a busy indicator by setting minimum and maximum, as well as its value, to 0. This works fine with all styles. It looks different in each case but the "busy" look is clearly there. However, using "-style gtk2" (on Ubuntu) simply produces a progress bar which is about 30% filled. Is this a known bug/feature?

  • @mjaga Just in case somebody wants to test this, here is a minimal example demonstrating the problem:

    #include <QApplication>
    #include <QProgressBar>
    int main(int argc, char *argv[])
        QApplication a(argc, argv);
        a.setStyle("plastique");       /* working...   */
        // a.setStyle("cleanlooks");   /* working...   */
        // a.setStyle("Windows");      /* working...   */
        // a.setStyle("Fusion");       /* working...   */
        // a.setStyle("gtk2");         /* NOT working! */
        QProgressBar pb;
        return a.exec();