Results 1 to 9 of 9

Thread: how to access network in QT

  1. #1
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to access network in QT

    Am a fresher in qt..my task was to access network folder to read images and want to display. i dont know how to access the Network folder.
    Can any one give me suggestion for this.
    Thanks in Advance

  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: how to access network in QT

    How have you already tried to solve your problem?
    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
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to access network in QT

    am learning now QNetworkaccessManager notes,,but i dont have knowledege how to use tthat,,please give me some suggestion for this
    Quote Originally Posted by wysota View Post
    How have you already tried to solve your problem?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to access network in QT

    What does network folder mean in your context?

    A share on a file server? A directory on an FTP server? A directory on a web server? A directory on a "file cloud" server?

    Cheers,
    _

  5. #5
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to access network in QT

    am going to read folder which was presented in server side
    Quote Originally Posted by anda_skoa View Post
    What does network folder mean in your context?

    A share on a file server? A directory on an FTP server? A directory on a web server? A directory on a "file cloud" server?

    Cheers,
    _

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to access network in QT

    Quote Originally Posted by iswaryasenthilkumar View Post
    am going to read folder which was presented in server side
    So you "answer" the questions by stating the already known information again?
    How do you think that adds anything new?

    Cheers,
    _

  7. #7
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to access network in QT

    am using smb sir.inside that am having folder to read,,
    Quote Originally Posted by anda_skoa View Post
    What does network folder mean in your context?

    A share on a file server? A directory on an FTP server? A directory on a web server? A directory on a "file cloud" server?

    Cheers,
    _

  8. #8
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: how to access network in QT

    Is your network share mounted on the system you're running your program? If so, just use QDir::setPath() to the mount point and then QDir::entryInfoList() to get the files and directories beneath the mount point.

  9. #9
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to access network in QT

    Quote Originally Posted by iswaryasenthilkumar View Post
    am using smb sir.inside that am having folder to read,,
    Well, in that case you don't have to do anything network related at all.
    A file server share is mounted into the local file system (as a drive on Windows, as a directory on Unix) and accessible like any other local file.

    Cheers,
    _

Similar Threads

  1. Help in Network
    By aloool14 in forum Qt Programming
    Replies: 2
    Last Post: 23rd October 2013, 13:22
  2. Qt network access manager
    By Arpitgarg in forum Newbie
    Replies: 5
    Last Post: 22nd May 2011, 10:34
  3. Qt Creator Can not access network using QT 4.7.2
    By jayesh_shah in forum Qt Tools
    Replies: 2
    Last Post: 12th April 2011, 05:36
  4. Replies: 1
    Last Post: 4th February 2011, 09:09
  5. access the network to read files
    By jaca in forum Newbie
    Replies: 3
    Last Post: 2nd March 2010, 13:00

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.