Results 1 to 7 of 7

Thread: disable floppy reading in a QFileDialog?

  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default disable floppy reading in a QFileDialog?

    Hi, I use a "QFileDialog::getExistingDirectory" (not using the native dialog from the system) and I've noticed that everytime that is shown it tries to read from the floppy disk and it's a bit anoying. Anybody knows if there's a simple way to disable this (if I use tha native it dosen't happens but I need to use the non native version). Thanks.

  2. #2
    Join Date
    Jan 2006
    Posts
    109
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Default Re: disable floppy reading in a QFileDialog?

    Which version of Qt is this?

  3. #3
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: disable floppy reading in a QFileDialog?

    Quote Originally Posted by dimitri
    Which version of Qt is this?
    Qt version 4.1 in winXP

  4. #4
    Join Date
    Jan 2006
    Posts
    109
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Default Re: disable floppy reading in a QFileDialog?

    Give Qt 4.1.2 a try. I seem to recall a similar issue, it may have been fixed in the latest version.

  5. The following user says thank you to dimitri for this useful post:

    SkripT (15th April 2006)

  6. #5
    Join Date
    Dec 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1

    Question Re: disable floppy reading in a QFileDialog?

    Quote Originally Posted by SkripT View Post
    Hi, I use a "QFileDialog::getExistingDirectory" (not using the native dialog from the system) and I've noticed that everytime that is shown it tries to read from the floppy disk and it's a bit anoying. Anybody knows if there's a simple way to disable this (if I use tha native it dosen't happens but I need to use the non native version). Thanks.
    I am experiencing the same problem in Qt 4.3, is there any way to not have the qFileDialog box look at the floppy (unless someone wants to load a file off of a floppy disk, of course)?

  7. #6
    Join Date
    Aug 2006
    Posts
    250
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    19
    Thanked 49 Times in 36 Posts

    Default Re: disable floppy reading in a QFileDialog?

    Quote Originally Posted by cigar View Post
    I am experiencing the same problem in Qt 4.3, is there any way to not have the qFileDialog box look at the floppy (unless someone wants to load a file off of a floppy disk, of course)?
    http://trolltech.com/developer/task-...ntry&id=140539

    Looks like this issue has been fixed and unfixed several times.

    Also from here:
    http://trolltech.com/developer/task-...ntry&id=139567
    "Resolution: We are currently working on a new QFileDialog and directory model that does not have this limitation. Unfortunately, it is too difficult to fix this problem in the existing QDirModel."

  8. The following user says thank you to pherthyl for this useful post:

    cigar (13th December 2007)

  9. #7
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    7
    Thanked 11 Times in 8 Posts

    Default Re: disable floppy reading in a QFileDialog?

    hello,
    I think floppy reading occurs on QDirModel construction, when refreshing the model.
    U may try using one instance of dialog during whole app working time. It may help if QFileDialog won't call refresh each time it's executed. In such case floppy will still be tested, but only when QFileDialog is executed for the first time.
    See GrEEn (Graphics Effects Environment)
    http://sourceforge.net/project/platf...roup_id=232746
    a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).

Similar Threads

  1. QFileDialog disable Dir Path
    By user_mail07 in forum Qt Programming
    Replies: 2
    Last Post: 15th April 2008, 20:57
  2. QWT 5, QT3, SuSE 10.2. Crash and burn
    By DrMcCleod in forum Qwt
    Replies: 8
    Last Post: 7th September 2007, 21:53

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
  •  
Qt is a trademark of The Qt Company.