Is there an easy way to add a button to select all files shows in current windows dialog..
Is there an easy way to add a button to select all files shows in current windows dialog..
Hey guys, is it possible to add a custom button to a QfileDialog to select all files in the current dir, with Qt4?
thx
roby
Well you can subclass QFileDialog and add a custom button to the layout which holds the other button. Then add a slot which selects all files. That's it.
Many thx for your kind reply..
can you provide an example about how to select all file programmatrically.. it seems to me that Qt4 dos not have anymore this functionality..
does "Ctrl-A" shortcut key work for you to select all files in a QFileDialog?
True, I can't find such a function. Crazy. A hack inside a subclass could be:Qt Code:
if (w) { w->selectAll(); }To copy to clipboard, switch view to plain text mode
very kind,
thanks
Yes, the Ctrl-A shortcut does work in a QFileDialog (at least on Windows, but it should work on every platform, take a look at http://qt.nokia.com/doc/4.6/qkeysequence.html for more information).
Bookmarks