Results 1 to 2 of 2

Thread: How can i add a ProgressIndicator to my programm?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How can i add a ProgressIndicator to my programm?

    I recently had seen this app.. It is ProgressIndicator and it is very cool.. I had made a program that change the wallpaper on ubuntu..



    So when the button start is clicked the wallpaper is changing... When you click stop it stops changing the wallpaper... How can i have the ProgressIndicator i mention above when the wallpapers are changing... ?

  2. #2
    Join Date
    May 2008
    Location
    Missouri City, TX, USA
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How can i add a ProgressIndicator to my programm?

    Find a place in your MainWindow widget, where you want to stick your QProgressIndicator widget or just bring it up as a modal dialog.

    Qt Code:
    1. QProgrssIndicator* piObj = new QProgressIndicator(this);
    2. piObj->setAnimationDelay(40);
    3. piObj->setDisplayedWhenStopped(false);
    4. piObj->setColor(QColor(Qt::Red));
    5. connect(startButton, SIGNAL(clicked()), piObj, SLOT(startAnimation());
    6. connect(stopButton, SIGNAL(clicked()), piObj, SLOT(stopAnimation());
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Why my programm is asking for libssl.so.7?
    By gboelter in forum Newbie
    Replies: 2
    Last Post: 29th September 2009, 12:23
  2. i want dynamic link my programm
    By coder1985 in forum Installation and Deployment
    Replies: 5
    Last Post: 19th November 2007, 10:59

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
  •  
Qt is a trademark of The Qt Company.