Results 1 to 2 of 2

Thread: Displaying Multiple Images such that image size can be set to window's width.

  1. #1
    Join Date
    Aug 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default Displaying Multiple Images such that image size can be set to window's width.

    Hi All!
    I am a newbie and hasn't worked too much in Qt.I am stuck with a problem.If somebody can provide a code for following problem i will be much more thankful:
    Problem:
    I want to Display two images in my window. I did that with QLable using QGridLayout but there were some problems,i.e.
    i) Images took only half of the width of window while i need my images to take full width of window in which they are displayed.
    ii) Images were not supporting User Interaction i.e. I need my Labels to be touch enabled so that i Can take appropriate action accordingly.
    I just realized at the end that QLabel doesn't support User interface.

    Therefore if some body can provide me with the full code having above mentioned functionality' it will help me out in my problem.Its a request.Thanks.

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

    Default Re: Displaying Multiple Images such that image size can be set to window's width.

    Quote Originally Posted by shakayb View Post
    Therefore if some body can provide me with the full code having above mentioned functionality' it will help me out in my problem.
    What are you offering in return?
    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.


Similar Threads

  1. assistant not displaying images
    By GrahamLabdon in forum Qt Tools
    Replies: 0
    Last Post: 12th November 2010, 13:51
  2. QTextEdit save as RichText width Images
    By kea_ in forum Qt Programming
    Replies: 2
    Last Post: 9th August 2010, 07:53
  3. QWebView not displaying images
    By andyp in forum Qt Programming
    Replies: 7
    Last Post: 3rd December 2009, 21:35
  4. Problem with displaying jpeg and gif images, in QT4
    By node_ex in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd September 2008, 15:29
  5. Image Viewer for multiple images
    By sinha.ashish in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2008, 16:30

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.