PDA

View Full Version : how to access network in QT



iswaryasenthilkumar
4th March 2015, 05:29
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.:confused:
Thanks in Advance:o

wysota
4th March 2015, 06:56
How have you already tried to solve your problem?

iswaryasenthilkumar
4th March 2015, 07:36
am learning now QNetworkaccessManager notes,,but i dont have knowledege how to use tthat,,please give me some suggestion for this

How have you already tried to solve your problem?

anda_skoa
4th March 2015, 08:01
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,
_

iswaryasenthilkumar
4th March 2015, 09:19
am going to read folder which was presented in server side

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,
_

anda_skoa
4th March 2015, 12:09
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,
_

iswaryasenthilkumar
5th March 2015, 06:32
am using smb sir.inside that am having folder to read,,
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,
_

jefftee
5th March 2015, 07:43
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.

anda_skoa
5th March 2015, 08:17
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,
_