Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Busy progressbar not working in gtk2 style

    General and Desktop
    progress bar busy indicator gtk2 style
    1
    2
    450
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mjaga last edited by

      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?

      M 1 Reply Last reply Reply Quote 0
      • M
        mjaga @mjaga last edited by mjaga

        @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;
            pb.setMaximum(0);
            pb.setMinimum(0);
            pb.setValue(0);
            pb.show();
        
            return a.exec();
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post