×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    63

    add picture into ProgressBar

    hello,
    I had wrote a progressbar, but i think add a picture on the progressbar's right....
    hope you hlpe me...............
    thanks

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: add picture into ProgressBar

    Just use any layout and place QLabel with pixmap set next to your progress bar.

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    63

    Re: add picture into ProgressBar

    hi Daniil,
    sorry,I'm not too clear.or preferably with examples.
    thanks

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: add picture into ProgressBar

    I didn't test the code.
    Code:
    QPixmap pixmap("icon.png");
    QLabel *icon = new QLabel;
    icon->setPixmap(pixmap);
    QProgressBar *bar = new QProgressBar;
    
    QHBoxLayout *layout = new QHBoxLayout;
    layout->addWidget(icon);
    layout->addWidget(bar);
    
    widget->setLayout(layout);

  5. #5
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    63

    Re: add picture into ProgressBar

    hi Daniil
    sorry,Perhaps I do not have the explanation to be clear.
    My meaning is I want to show a small picture in progressbar above.
    thanks.........

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: add picture into ProgressBar

    Quote Originally Posted by wudelei View Post
    My meaning is I want to show a small picture in progressbar above.
    Try QVBoxLayout or QGridLayout.

Similar Threads

  1. How to add text after picture in CEikRichTextEditor
    By yuanyelele in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-10-13, 10:32
  2. Replies: 4
    Last Post: 2006-08-30, 10:15
  3. problem in 6630 with picture sms
    By inspirebaby in forum General Messaging
    Replies: 0
    Last Post: 2006-02-03, 01:55
  4. Help on Picture Messaging
    By blindcat1 in forum Smart Messaging
    Replies: 0
    Last Post: 2005-06-26, 16:45
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

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