Results 1 to 3 of 3

Thread: QT 4..8.4 Image import into QListWidget in a QT Widget

  1. #1
    Join Date
    Aug 2013
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default QT 4..8.4 Image import into QListWidget in a QT Widget

    Hi all,

    I am creating a image registration application using QT 4.8.4 in Mac OS X Mountain Lion. It would be great to have your guidance, how to import datas using a QPushButton and select the necessary .jpeg files and display it in a QListView as icons which is one among many components in a QWidget which i created using QT Creator. ( Both QPushButton, and QListView are in same QWidget )
    Attached the snapshot of my application
    Screen Shot 2013-08-08 at 1.00.02 PM.jpg.

    I am beginner in qt would love to have your guidances.

  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: QT 4..8.4 Image import into QListWidget in a QT Widget

    Write out in simple steps in English (or your native tongue) how you might do this. Then try to convert each step to code. For example:
    • Start when user presses button -> connect a slot to the clicked() signal
    • ask user to locate an image -> open a file dialog
    • load image into memory
    • scale image to thumbnail size
    • put image into view
    • etc.

  3. #3
    Join Date
    Aug 2013
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QT 4..8.4 Image import into QListWidget in a QT Widget

    Hi Chris,

    Thank you so much for your response. It would be great help if you could guide me with a sample code for implementing it, it would be great help for me and other beginners to get an essence of QT Implementation. Looking forward to your guidance.

    regards,
    Venkatesh Padmanabhan


    Added after 24 minutes:


    I have used QPushButton to open a dialog to choose the folder but, the problem comes when trying to select the folder and import it into qlistview in icon mode. I don't know how to implement it and i could find a valid tutorial for it too. Awaiting your valuable guidance.
    Last edited by Venkatesh Padmanabhan; 11th August 2013 at 13:14.

Similar Threads

  1. QListWidget image layout
    By ^NyAw^ in forum Qt Programming
    Replies: 6
    Last Post: 1st March 2013, 09:38
  2. Need Image rightside of QListwidget
    By rajeshs in forum Qt Programming
    Replies: 18
    Last Post: 12th February 2013, 21:46
  3. Replies: 2
    Last Post: 18th June 2011, 08:57
  4. How to add image in QListWidget
    By mekos in forum Qt Programming
    Replies: 8
    Last Post: 4th August 2008, 19:19
  5. import pdf file as image
    By dreamer in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2008, 07:43

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.