PDA

View Full Version : subclass of QFileDialog



afail
18th May 2009, 13:22
Hi,

I need to subclass QFileDialog in a way to appear with tabs above the dialog. Thus, I create QDialog object with QTabWidget object in its layout, and then for the first tab (->widget(0)) I say to be parent of QFileDialog object. It doesn't appear to do what I need.

What is the right way to make QFileDialog appear in QTabWidget object in a dialog of my own?

thanks

janus
18th May 2009, 17:09
Hi,

I am not sure if you really can embed a QFileDialog into another widget. Maybe you could use QDirModel and some viewwidget.