Results 1 to 3 of 3

Thread: QFileDialog::getOpenFileName crash in debug mode and not in realease mode

  1. #1
    Join Date
    Nov 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QFileDialog::getOpenFileName crash in debug mode and not in realease mode

    hello,

    I use QFileDialog::getOpenFileName in my project.
    When i execute my programm, this one crash in debug mode but not in release mode...

    I have not idea why.

    I use Qt 4.8.1 whith Qt-Crator 2.4.1 Windows 7 (64 Bit). My program is compiled in 32 bit.

    Qt Code:
    1. QString qs_fichier = QFileDialog::getOpenFileName(0,tr("Fichier à envoyer"),
    2. tr("Ihm po Files (*.ihm_po)"));
    To copy to clipboard, switch view to plain text mode 

    Sorry for my poor english.

    Antony

  2. #2
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QFileDialog::getOpenFileName crash in debug mode and not in realease mode

    Are you sure that it actually crashes? In my experience the file dialogs can be *very* slow when debugging under Windows.

  3. #3
    Join Date
    Nov 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QFileDialog::getOpenFileName crash in debug mode and not in realease mode

    Yes, i'm sure. When debugging step by step (F10) my programm crashes at this instruction.

Similar Threads

  1. Replies: 1
    Last Post: 7th March 2012, 21:34
  2. confused about QFileDialog in debug and release mode
    By furskytl in forum Qt Programming
    Replies: 4
    Last Post: 23rd December 2011, 11:01
  3. Replies: 1
    Last Post: 2nd November 2009, 12:02
  4. Replies: 9
    Last Post: 15th April 2009, 06:23
  5. Replies: 8
    Last Post: 10th October 2007, 18:20

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.