Yaa Sure....
DriveInfo *tmp = pDriveListStart;
while(tmp)
{
combo->addItem((const char *)tmp->DisplayLable);
combo
->setSizeAdjustPolicy
(QComboBox::AdjustToContents);
combo->setMaxCount(4);
tmp=tmp->next;
}
DriveInfo *tmp = pDriveListStart;
while(tmp)
{
combo->addItem((const char *)tmp->DisplayLable);
combo->setSizeAdjustPolicy(QComboBox::AdjustToContents);
combo->setMaxCount(4);
tmp=tmp->next;
}
To copy to clipboard, switch view to plain text mode
tmp variable contains all the information about the drives in my system.
Thanx
Bookmarks