Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Busy progressbar not working in gtk2 style
QtWS25 Last Chance

Busy progressbar not working in gtk2 style

Scheduled Pinned Locked Moved Unsolved General and Desktop
progress barbusy indicatorgtk2 style
2 Posts 1 Posters 696 Views
  • 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 Offline
    M Offline
    mjaga
    wrote on last edited by
    #1

    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
    0
    • M mjaga

      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 Offline
      M Offline
      mjaga
      wrote on last edited by mjaga
      #2

      @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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved