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

Text of vertical QProgressBar

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 948 Views 2 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.
  • beeckscheB Offline
    beeckscheB Offline
    beecksche
    wrote on last edited by beecksche
    #1

    Hi,
    I recognized that when i use a vertical QProgressBar (setOrientation(Qt::Vertical)) and set the property textVisible to true (setTextVisible(true)), the text is not aligned correctly as showed in the picture below.

    alt text

    As you can see, the horizontal position changes depending on the vertical size of the QProgressBar. And the vertical position is depending on the horizontal size.

    Is this a Bug or do i forget something?

    Thanks!

    kshegunovK 1 Reply Last reply
    0
    • beeckscheB beecksche

      Hi,
      I recognized that when i use a vertical QProgressBar (setOrientation(Qt::Vertical)) and set the property textVisible to true (setTextVisible(true)), the text is not aligned correctly as showed in the picture below.

      alt text

      As you can see, the horizontal position changes depending on the vertical size of the QProgressBar. And the vertical position is depending on the horizontal size.

      Is this a Bug or do i forget something?

      Thanks!

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      Hi,
      Are those bars in a layout? If not try putting them in one and see how that fares.

      Kind regards.

      Read and abide by the Qt Code of Conduct

      beeckscheB 1 Reply Last reply
      0
      • kshegunovK kshegunov

        Hi,
        Are those bars in a layout? If not try putting them in one and see how that fares.

        Kind regards.

        beeckscheB Offline
        beeckscheB Offline
        beecksche
        wrote on last edited by
        #3

        @kshegunov
        No the bars are not in a layout. Even if i set them into one, the text is still displaced.

        I'm not sure if this bug is the same like mine https://bugreports.qt.io/browse/QTBUG-31385

        kshegunovK 1 Reply Last reply
        0
        • beeckscheB beecksche

          @kshegunov
          No the bars are not in a layout. Even if i set them into one, the text is still displaced.

          I'm not sure if this bug is the same like mine https://bugreports.qt.io/browse/QTBUG-31385

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          Yes, appears to be related.

          Read and abide by the Qt Code of Conduct

          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