PDA

View Full Version : Add Widget to QFileDialog



Rayven
9th August 2006, 17:15
I seem to remember in Qt3 that there was the ability to add buttons to the open file dialog along the sides or bottom. I was wondering if there is a way to add a series of 5 buttons (similar to the file dialogs in Windows) that act as shortcuts to user diefined directorys without subclassing QDialog and building the open file from scratch.

Chicken Blood Machine
9th August 2006, 18:33
I wondered about this some time ago and was led to believe that this API would be on Trolltech's 'TODO' list.

In the meantime, I got around this by subclassing QFileDialog, getting hold of the internal layout and inserting my controls into sublayouts within that.

It works just fine and this is what the addWidget() APIs should do (once implemented).