Results 1 to 3 of 3

Thread: QFileDialog in modeless QDialog and mutex error

  1. #1
    Join Date
    Aug 2009
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QFileDialog in modeless QDialog and mutex error

    I display several QImages in several modeless QDialogs, each with a Save button. In the save routine I invoke
    QFileDialog::getSaveFileName(...)
    which crashes with

    Program received signal SIGSEGV, Segmentation fault.
    0x00002afd7a378adc in QMutex::lock (this=0x61e030) at thread/qmutex.cpp:152
    152 thread/qmutex.cpp: No such file or directory.
    in thread/qmutex.cpp

    I am unaware that I am using threads or am I?
    What do I do wrong?
    Appreciate any help.

    Enno

  2. #2
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QFileDialog in modeless QDialog and mutex error

    There are no telepathists at this forum.
    Show your invalid code

  3. #3
    Join Date
    Aug 2009
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFileDialog in modeless QDialog and mutex error

    Rather than bother you all with sizeable code I did some thinking unlike some novices.
    Modeless dialogs appear to use threads (a main use for mutexes).
    Avoiding the static dialog and exec'ing a QFileDialog as member of the modelss dialog avoids the conflict and works fine.

    Enno

Similar Threads

  1. Thread mutex lock and return value
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 13th February 2010, 07:32
  2. Error: QFileDialog has not been declared? Help
    By augusbas in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 23rd June 2009, 08:45
  3. Qthread mutex
    By dognzhe in forum Qt Programming
    Replies: 5
    Last Post: 18th May 2009, 05:46
  4. QDialog modeless problem
    By sgtbash in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2009, 19:03
  5. Replies: 11
    Last Post: 31st May 2007, 01:11

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.