Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to set QProgressBar widget in vertically from Qt Designer?
QtWS25 Last Chance

How to set QProgressBar widget in vertically from Qt Designer?

Scheduled Pinned Locked Moved Unsolved Qt for Python
pysidepythonqt for python
3 Posts 3 Posters 1.0k 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.
  • B Offline
    B Offline
    BrantFF
    wrote on last edited by
    #1

    Hi, experts,
    I am a new member of this forum :-).
    I encountered a question as below when I want to place a QProgressBar in vertically from Qt Designer:
    I can't set the property orientation of a QProgressBar widget to Vertical. I selected the property orientation to Veritcal from a drop-down list:
    6adbb93a-3e48-4b9e-8116-05fb1a38a56d-image.png
    It will return to default value( here is Horizontal ) when I change other attributes.
    Now, I tried to edit the property orientation from generated file *.ui, yes, it works.
    f9644745-10b5-4f05-84b3-5986bed9a337-image.png
    But, it caused another problem:
    The QProgressBar widget can't show its current value!
    34caa550-e471-4561-88c9-2a36552ece41-image.png
    As you can see, only the horizontal QProgressBar widget shows its current value.
    Here are my questions:

    1. If it's okay set property orientation of QProgressBar widget to Vertical from Qt Designer? If yes, how to do?
    2. Why the QProgressBar's value disappeared when its property orientation set to Vertical? Is this problem caused by my incorrect operation steps?
      Platform:
      MS Windows 10
      Software version:
      Python: v3.10.8
      PySide6: v6.5.0
      Qt Designer: v6.5.0
      Thanks in advance for your help :-).
    JonBJ 1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      A progress bar always displays the correct value, regardless of its orientation.
      The default value is 24. I have no idea why and no idea why it disappears for you, if the orientation changes. However, if you use setValue(x), x will be represented correctly.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0
      • B BrantFF

        Hi, experts,
        I am a new member of this forum :-).
        I encountered a question as below when I want to place a QProgressBar in vertically from Qt Designer:
        I can't set the property orientation of a QProgressBar widget to Vertical. I selected the property orientation to Veritcal from a drop-down list:
        6adbb93a-3e48-4b9e-8116-05fb1a38a56d-image.png
        It will return to default value( here is Horizontal ) when I change other attributes.
        Now, I tried to edit the property orientation from generated file *.ui, yes, it works.
        f9644745-10b5-4f05-84b3-5986bed9a337-image.png
        But, it caused another problem:
        The QProgressBar widget can't show its current value!
        34caa550-e471-4561-88c9-2a36552ece41-image.png
        As you can see, only the horizontal QProgressBar widget shows its current value.
        Here are my questions:

        1. If it's okay set property orientation of QProgressBar widget to Vertical from Qt Designer? If yes, how to do?
        2. Why the QProgressBar's value disappeared when its property orientation set to Vertical? Is this problem caused by my incorrect operation steps?
          Platform:
          MS Windows 10
          Software version:
          Python: v3.10.8
          PySide6: v6.5.0
          Qt Designer: v6.5.0
          Thanks in advance for your help :-).
        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @BrantFF said in How to set QProgressBar widget in vertically from Qt Designer?:

        It will return to default value( here is Horizontal ) when I change other attributes.

        Give an example of exactly one further change which causes Vertical to get replaced by Horizontal. And if it really does that the version of Qt Creator you are using. OIC, Qt Designer: v6.5.0. Give the change example (e.g. does it happen if you uncheck textVisible? does it change if you pick some other widget and change one of its attributes, so that you are saying any change at all causes reversion?) and ask someone with that Designer version if it happens to them.

        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