PDA

View Full Version : why QFileDialog does not display the default winxp dialog?



mismael85
21st March 2008, 11:55
hi,
i am wondering why QFileDialog does not dislpay the default winxp dialog rather than
the native one.
is there any solution to this situation?
if not,
will trollTech make this in the future?

wysota
21st March 2008, 12:28
If you use static methods of QFileDialog, you should get the system dialog.

mismael85
21st March 2008, 12:49
yes , i know.
but what i means is the dialog that have buttons with xp theme.
not the one that have win98 theme.

wysota
21st March 2008, 13:23
I don't quite follow. What system are you running and what code do you use that triggers the dialog?

jpn
21st March 2008, 13:32
See 148128 - QFileDialog does not appear with Windows XP style buttons when using the static functions

mismael85
21st March 2008, 13:39
i am using windows xp
and here it is the code i use to open the dialog.


QString fileName = QFileDialog::getOpenFileName();
with this code i get the native windows xp dialog but with buttons like windows 98.
and i am also used the code with an object

QFileDialog dialog(this);
dialog.setFileMode(QFileDialog::AnyFile);
with this code i get a strange dialog that i think it belongs to Qt.