Results 1 to 6 of 6

Thread: why QFileDialog does not display the default winxp dialog?

  1. #1
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Question why QFileDialog does not display the default winxp dialog?

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: why QFileDialog does not display the default winxp dialog?

    If you use static methods of QFileDialog, you should get the system dialog.

  3. #3
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: why QFileDialog does not display the default winxp dialog?

    yes , i know.
    but what i means is the dialog that have buttons with xp theme.
    not the one that have win98 theme.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: why QFileDialog does not display the default winxp dialog?

    I don't quite follow. What system are you running and what code do you use that triggers the dialog?

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: why QFileDialog does not display the default winxp dialog?

    J-P Nurmi

  6. The following user says thank you to jpn for this useful post:

    mismael85 (21st March 2008)

  7. #6
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: why QFileDialog does not display the default winxp dialog?

    i am using windows xp
    and here it is the code i use to open the dialog.

    Qt Code:
    1. QString fileName = QFileDialog::getOpenFileName();
    To copy to clipboard, switch view to plain text mode 
    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
    Qt Code:
    1. QFileDialog dialog(this);
    2. dialog.setFileMode(QFileDialog::AnyFile);
    To copy to clipboard, switch view to plain text mode 
    with this code i get a strange dialog that i think it belongs to Qt.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.