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. How to set vertical QProgressBar width ?
Forum Updated to NodeBB v4.3 + New Features

How to set vertical QProgressBar width ?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 83 Views 1 Watching
  • 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.
  • sonichyS Offline
    sonichyS Offline
    sonichy
    wrote on last edited by sonichy
    #1

    I want a QProgressBar like 2px line not default 40px rectangle.
    https://s21.ax1x.com/2025/02/25/pE173U1.png

    Solved:
    QProgressBar->setFixedWidth(2);

    https://github.com/sonichy

    Pl45m4P 1 Reply Last reply
    0
    • sonichyS sonichy

      I want a QProgressBar like 2px line not default 40px rectangle.
      https://s21.ax1x.com/2025/02/25/pE173U1.png

      Solved:
      QProgressBar->setFixedWidth(2);

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @sonichy

      The easiest way is to use Stylesheet

      • https://doc.qt.io/qt-6/stylesheet-examples.html#customizing-qprogressbar

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • sonichyS sonichy 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