문제

I am making photo gallery application in Nokia Qt, I want to show pictures from device's memory card. How can i get pictures from memory card in Qt?

도움이 되었습니까?

해결책

As an addendum to eburger's answer, QtMobility's QSystemStorageInfo can be used to determine which (or if) one of the drives is the memory card drive:

QSystemStorageInfo systemInfo;
QStringList driveList = systemInfo.logicalDrives();
QString memPath = "";
for (int index = 0; index < driveList.count(); index++)
{
    if (QSystemStorageInfo::RemovableDrive == systemInfo.typeForDrive(driveList[index]))

    {
        memPath = driveList[index];
        break; }
}

다른 팁

DocumentGallery in QtMobility should do the job: http://doc.qt.nokia.com/qtmobility-1.1.0/gallery.html. Use filters to filter out files, that dont have the memory card drive letter.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top