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 text within QProgressbar
Qt 6.11 is out! See what's new in the release blog

QProgressbar text within QProgressbar

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 6.8k 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.
  • T Offline
    T Offline
    toxicate20
    wrote on last edited by
    #1

    Hey everyone,

    I've implemented a QProgressbar in my Qt GUI application but now i want to show a small text within the bar. I know that QProgressbar has the property .text but that would probably just be the %. You guys have any idea how to do this?

    Thanks in advance!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      I didn't understand why you don't want to use text property. Can you elaborate?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vsorokin
        wrote on last edited by
        #3

        See "format property":http://doc.qt.nokia.com/4.7/qprogressbar.html#format-prop
        you can add your text to this property and it will be show on progress bar

        --
        Vasiliy

        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