Results 1 to 4 of 4

Thread: Image Viewer

  1. #1
    Join Date
    Jan 2006
    Location
    India
    Posts
    54
    Thanks
    1
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Image Viewer

    Hi

    I am developing an Image-Viewer through one can only see the images of any format like ( png, jpg, xpm, bmp etc )

    I want to show the required image in the central area of QMainWindow, but the central widget must be of type QWidget.

    So I created the central Widget inherited from QWidget and QPixmap....( i m not sure that I should do this ) but its not working.

    plz guide me

    thanks & regards
    sumsin

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

    Default Re: Image Viewer

    Try QLabel

  3. #3
    Join Date
    Jan 2006
    Location
    India
    Posts
    54
    Thanks
    1
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Image Viewer

    thanks.

    Its working, but is it the right choise...

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Image Viewer

    QLabel is inteded for displaying text or an image.
    No user interaction functionality is provided, though. So as long as you're only displaying the image, it's fine and even no subclassing is needed.

  5. The following user says thank you to jpn for this useful post:

    thaihoangluu (22nd December 2011)

Similar Threads

  1. regarding image viewer in S60Qt
    By prajna in forum Newbie
    Replies: 0
    Last Post: 22nd January 2009, 10:48
  2. Image Viewer Example and Flickering
    By babu198649 in forum Newbie
    Replies: 0
    Last Post: 7th August 2008, 15:42
  3. Image Viewer for multiple images
    By sinha.ashish in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2008, 16:30
  4. Finding marks on scanned image for alignment
    By caduel in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2007, 02:10
  5. Requirement for versatile image viewer
    By deekayt in forum General Discussion
    Replies: 1
    Last Post: 27th October 2006, 14:28

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.