Results 1 to 5 of 5

Thread: simulation of navigator and image gallery

  1. #1
    Join Date
    Apr 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default simulation of navigator and image gallery

    Hi everyone,

    I am new here and i need some help for my project.
    My project is to download pictures from the web and store it in a directory..And then display all the pictures like a gallery..
    So i want to know which classes i have to use and how i have to organize my project.


    thank you very much

  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: simulation of navigator and image gallery

    Do you want us to design your application for you?
    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.


  3. #3
    Join Date
    Apr 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: simulation of navigator and image gallery

    no i just want some help like : which classes i have to use ? I am really new in Qt and C++

  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: simulation of navigator and image gallery

    If you are new in C++ then how are you going to use those classes without knowing the programming language?

    But ok, have it your way - QApplication, QNetworkAccessManager, QNetworkRequest, QNetworkReply, QFile, QAbstractItemModel subclass or QFileSystemModel, QListView and QAbstractItemDelegate subclass (or alternatively QGraphicsView, QGraphicsScene and QGraphicsPixmapItem), QWidget, subclasses of QLayout, QMainWindow, QString, QVariant, QUrl, QByteArray, possibly also QAction, QMenu, QToolBar, QIcon, QPixmap, QImage, QDialog, QMessageBox, QRect, QSize. That should be enough to get you started. For more you can see the full list of Qt classes.
    Last edited by wysota; 14th April 2015 at 09:36.
    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.


  5. #5
    Join Date
    Apr 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: simulation of navigator and image gallery

    Thank you

    Qt Code:
    1. void CHttpImageDownloader::downloadImage(const QString &imageUrl)
    2. {
    3.  
    4. buffer.open(QBuffer::ReadWrite);
    5.  
    6. QUrl url(imageUrl);
    7.  
    8. QHttp::ConnectionMode mode = url.scheme().toLower() == "https" ? QHttp::ConnectionModeHttps : QHttp::ConnectionModeHttp;
    9. http->setHost(url.host(), mode, url.port() == -1 ? 0 : url.port());
    10.  
    11. if (!url.userName().isEmpty())
    12. http->setUser(url.userName(), url.password());
    13.  
    14. httpGetId = http->get(url.toString(), &buffer);
    15. }
    To copy to clipboard, switch view to plain text mode 
    Thats what i wanted to do but QHttp is obsolete and i know i have to use QNetworkAccessManager but i need some help

Similar Threads

  1. Android, select image using Gallery
    By meego_man in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 18th December 2015, 19:52
  2. change pad navigator example
    By rmagro in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2013, 22:07
  3. Cann't run example: pad navigator
    By RogerShen in forum Qt Programming
    Replies: 0
    Last Post: 19th May 2010, 13:05
  4. Image Gallery Viewer
    By sheeeng in forum Qt Programming
    Replies: 4
    Last Post: 19th December 2009, 08:55
  5. get an adress from navigator using Qt
    By nina08 in forum Qt Programming
    Replies: 1
    Last Post: 21st May 2008, 15:13

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.