Violet Giraffe
Violet Giraffe

Reputation: 33589

Is it possible to enumerate network root using Qt classes?

Qt file API classes handle network folder paths correctly on Windows. But I can’t find a way to enumerate network root (list of network drives and computers available). Is there any way to do that without using WinAPI but only Qt classes?

Upvotes: 2

Views: 118

Answers (1)

László Papp
László Papp

Reputation: 53165

I am afraid, the best you can get is QStorageInfo from QtSystems.

allLogicalDrives : const QStringList

This property holds the list of all drives.

Returns a list of all logical drives or volumes, or an empty list if no drives are found or on error.

Then, you have methods to query the uri, filter based on "remote" type, etc.

Upvotes: 1

Related Questions