How to open file and Directory in QT

Posted by sijith on Stack Overflow See other posts from Stack Overflow or by sijith
Published on 2010-03-31T05:08:01Z Indexed on 2010/03/31 5:13 UTC
Read the original article Hit count: 191

Filed under:
|
|

Hi, I want to open Directory and file using the same function. Is it possible to do the same in QT. I used

QString directory = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
      "",
     QFileDialog::ShowDirsOnly
     | QFileDialog::DontResolveSymlinks);

Here i can open only directory. How to open both file and directory using single function

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4