Results 1 to 4 of 4

Thread: QFileDialog::getOpenFileName closing very late.

  1. #1
    Join Date
    Oct 2010
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Question QFileDialog::getOpenFileName closing very late.

    Hi..
    I am using "QFileDialog::getOpenFileName()" in mycode. The thing is if i select a smaller file(in size), filedialoge closing immedietly. If i select a large movie file(morethan ~500MB), dialoge taking long time to close itself. Ofcourse it returning the path of that file, but why this delay in closing happens? Can i avoid that?

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFileDialog::getOpenFileName closing very late.

    Which Qt version, OS or environment? Do you use native dialogs? If not, do you see the same behavior using the non-blocking approach?
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Oct 2010
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: QFileDialog::getOpenFileName closing very late.

    hi..franz,
    I am using Qt 4.7.0 (windows XP), an i am passing the flags(QFileDialog:ontUseNativeDialog | QFileDialog:ontResolveSymlinks) while creating filedialoge. sorry i dont know what "non-blocking approach" means?

  4. #4
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFileDialog::getOpenFileName closing very late.

    OK, you should try to see what happens when you don't use the static functions. Have a look at the Unpredictable Exec blog post for more info on the (better imo) alternatives.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. Why QFileDialog::getOpenFileName is not centered?
    By ricardo in forum Qt Programming
    Replies: 20
    Last Post: 30th August 2009, 23:08
  2. Replies: 2
    Last Post: 10th January 2008, 12:52
  3. Problem with QFileDialog::getOpenFileName()
    By spud in forum Qt Programming
    Replies: 4
    Last Post: 1st November 2007, 22:31
  4. Replies: 1
    Last Post: 14th October 2007, 23:10
  5. QFileDialog::getOpenFileName() gets stucked
    By elcuco in forum Qt Programming
    Replies: 5
    Last Post: 28th March 2006, 23:09

Tags for this Thread

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.