Results 1 to 4 of 4

Thread: how to browse images in qt ??

  1. #1
    Join Date
    Jul 2010
    Posts
    71
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default how to browse images in qt ??

    Hello
    how to browse images in qt ??
    I used this program
    http://doc.qt.nokia.com/4.7-snapshot...indow-cpp.html
    Qt Code:
    1. QString directory = QFileDialog::getExistingDirectory(this,
    2. tr("Find Files"), QDir::currentPath());
    To copy to clipboard, switch view to plain text mode 


    But, does not display the image
    I do not know why

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: how to browse images in qt ??

    Read the example documentation (that is an example that comes with the Qt SDK), because the code you posted is for selection of the folders (directories) where to search for files, not for opening files with a filter for pictures, that can be done with QFileDialog::getOpenFileNames(...)

    //if i didn't understand your problem right, please provide more details about your issue.

  3. #3
    Join Date
    Jul 2010
    Posts
    71
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to browse images in qt ??

    Thank you
    I want to take the image from my computer, then display the image.

    What better way to display the images in qt designer ??

  4. #4
    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: how to browse images in qt ??

    Better than what?
    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. Widget to browse file
    By nighil in forum Newbie
    Replies: 1
    Last Post: 26th January 2011, 12:01
  2. File Browse Window
    By kamlmish in forum Newbie
    Replies: 2
    Last Post: 16th December 2010, 06:48
  3. Browse /dev/ using QFileDialog on Mac OS X
    By blueillusion in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2010, 22:41
  4. Browse Button
    By electronicboy in forum General Programming
    Replies: 1
    Last Post: 17th October 2009, 14:50
  5. how to browse images in thumbnail view?
    By zl2k in forum Qt Programming
    Replies: 12
    Last Post: 23rd April 2009, 03:20

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.