Results 1 to 4 of 4

Thread: spinner (delay) button

  1. #1
    Join Date
    May 2009
    Posts
    129

    Default spinner (delay) button

    Hi

    I am communicating with server......

    It takes some time to send responce .....That time want to run one spinner .....to show process is going ... like that.....


    Please which one i have to use....If anybody provide me a example ...It will better for me


    please help me

    Thanks

    Yuvaraj R

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: spinner (delay) button

    Hey addu,

    changed your account from yuvaraj.yadav to addu, because same name, same question style

    To your question: See the documentation of QProgressBar and QProgressDialog. There are also examples.

  3. #3
    Join Date
    May 2009
    Posts
    129

    Default Re: spinner (delay) button

    But I would kije to set as loading animation gif format image ... instead of progress bar....



    Is it same as setting images for label ?

    I set like this , but image is not animating...

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: spinner (delay) button

    As I remember, QLabel doesn't support animated Gifs. You have to use QMovie I think... try the forums search for "animated gif"
    Qt Code:
    1. QLabel label;
    2. QMovie *movie = new QMovie("animated.gif");
    3. label.setMovie(movie);
    4. movie->start();
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. button background color when it is clicked
    By navi1084 in forum Qt Programming
    Replies: 4
    Last Post: 9th December 2008, 15:02
  2. button with backgr and icon using stylesheets
    By s_p_t10 in forum Qt Programming
    Replies: 0
    Last Post: 7th May 2008, 20:19
  3. problem about mouse button events
    By vql in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2008, 10:14
  4. question about button
    By narumi in forum Newbie
    Replies: 2
    Last Post: 21st January 2008, 05:44
  5. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.