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. QProgressBar
Forum Updated to NodeBB v4.3 + New Features

QProgressBar

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 220 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.
  • D Offline
    D Offline
    dan1973
    wrote on last edited by
    #1

    I am trying to show vertical text in QProgressBar. It is not showing it.

    My code:

    pgbr3 = new QProgressBar(this);
        pgbr3->setRange(0, 1000);
        pgbr3->setValue(300);
        pgbr3->setOrientation(Qt::Vertical);
        pgbr3->setGeometry(100, 260, 30, 200);
        pgbr3->setFormat("Completed: %p%   CurVal: %v   Total: %m");
        pgbr3->setTextVisible(true);
    
    

    Please help me.

    thanking you in advance.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by
      #2

      Qt using Windows style won't show vertical text in QProgressBar.
      Even you use fusion style which shows the vertical text, it won't be like what you want, it would look like this:

      图片.png

      So you'd better not to try to show the text by QProgressBar and find some other way to show it.

      D 1 Reply Last reply
      0
      • B Bonnie

        Qt using Windows style won't show vertical text in QProgressBar.
        Even you use fusion style which shows the vertical text, it won't be like what you want, it would look like this:

        图片.png

        So you'd better not to try to show the text by QProgressBar and find some other way to show it.

        D Offline
        D Offline
        dan1973
        wrote on last edited by
        #3

        @Bonnie Thank you bonnie.

        1 Reply Last reply
        0
        • D dan1973 has marked this topic as solved on
        • D dan1973 has marked this topic as solved on

        • Login

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