+ Reply to Thread
Results 1 to 2 of 2

Thread: How to set string when QProgressBar is in busy mode

  1. #1
    Join Date
    Jul 2014
    Posts
    20
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to set string when QProgressBar is in busy mode

    Hi,

    We know QProgressBar can be in busy mode if we set minimum/maximum to 0.
    But I want to show some text inside the bar, what can I do?
    Currently there is a "setFormat" to set string, but it is for progress number format, doesn't work in busy mode.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,278
    Thanks
    3
    Thanked 4,994 Times in 4,774 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: How to set string when QProgressBar is in busy mode

    It seems easiest to subclass and render the text manually.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 23rd April 2014, 10:03
  2. QProgressBar, stylesheet, and the busy indicator
    By latency in forum Qt Programming
    Replies: 0
    Last Post: 3rd September 2009, 01:10
  3. read input string --> text mode
    By eleanor in forum Qt Programming
    Replies: 1
    Last Post: 25th October 2007, 18:08
  4. QProgressBar busy indicator
    By Michiel in forum Qt Tools
    Replies: 2
    Last Post: 1st August 2007, 16:54
  5. [QProgressBar] busy mode
    By villy in forum Qt Programming
    Replies: 3
    Last Post: 17th November 2006, 08:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts