PDA

View Full Version : viewing files or some folders



as001622
2nd June 2008, 08:24
Hello!
I need to write SLOT for opening some files or directories using Qt. How I can manage it?

jpn
2nd June 2008, 08:56
See QFileDialog. Notice especially those convenient static methods.

as001622
2nd June 2008, 09:09
Actually I don't need to use this files or folders in my program. It should open after button ButtonPressed event separatly out of my program.

jpn
2nd June 2008, 09:45
QUrl::fromLocalFile()
QDesktopServices::openUrl()

lyuts
2nd June 2008, 12:12
Hello!
I need to write SLOT for opening some files or directories using Qt. How I can manage it?

Implement your function and declare it in slots section.Then connect some signal to your slot.


class QQQ {
...
private slots:
void MySlot();
...
}

void QQQ::MySlot()
{
...
}