Results 1 to 3 of 3

Thread: how to add images to QMessageBox dynamically?

  1. #1
    Join Date
    Jul 2012
    Posts
    21
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Question how to add images to QMessageBox dynamically?

    Hi everyone.

    I need a pop-up message with some data and image. Both data and image will be dynamically put the pop-up.

    how can I do that?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to add images to QMessageBox dynamically?

    By spending 30 seconds scanning the QMessageBox documentation rather than relying on other people to do it for you. When you still cannot work it out then come back and tell us what you tried.

  3. #3
    Join Date
    Jul 2012
    Posts
    21
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Question Re: how to add images to QMessageBox dynamically?

    I have tried to use the documentation. But with the help of the documentation I can use text inside the message box like the following
    Qt Code:
    1.  
    2. QString er=tr("We are talking about a short stop at the end of a word in reading the Koran, with the intention to continue reading.");
    3. noc.setText(er);
    4. noc.exec();
    To copy to clipboard, switch view to plain text mode 
    But I'm not able to resize this and put any image inside the body with the text. So can you help on this now?

Similar Threads

  1. To place images to a grid dynamically
    By athulms in forum Qt Quick
    Replies: 0
    Last Post: 28th July 2011, 07:35
  2. To place images to a grid dynamically
    By athulms in forum Newbie
    Replies: 0
    Last Post: 28th July 2011, 06:46
  3. Replies: 1
    Last Post: 20th January 2011, 10:26
  4. Replies: 1
    Last Post: 16th November 2010, 17:45
  5. Replies: 4
    Last Post: 27th July 2009, 15:45

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