Results 1 to 3 of 3

Thread: Multiple window / form application. QFileDialog crashes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Multiple window / form application. QFileDialog crashes

    Dear all,

    I am writing a GUI application for image processing. I have three windows (please see attached image):
    1. Main GUI.
    2. Window for displaying 2D image
    3. Window to draw a simple graph
    All windows were drawn using Qt Creator 2.0.0 based on Qt 4.7.0 (32bit).

    Currently, I am creating windows 2 and 3 inside Main GUI by using new and delete commands.
    However, I have a problem: the program crashes sometimes (randomly) when I try to open file using
    QFileDialog newdialog(this);
    newdialog.setReadOnly(true);
    QString path = newdialog.getOpenFileName(this, tr("Open File"), filename);
    It is not reproducible, sometimes it crashes on third time of usage, sometimes on fifths. Thus, I cant not understand what is wrong.

    Could anybody suggest what is the right way to handle multiple windows/forms?

    Thank you for your help,
    Roman
    Attached Images Attached Images

Similar Threads

  1. QFileDialog select multiple directories
    By bepaald in forum Newbie
    Replies: 4
    Last Post: 15th May 2012, 05:17
  2. Select multiple files from QFileDialog
    By jiveaxe in forum Qt Programming
    Replies: 6
    Last Post: 16th February 2009, 14:57
  3. Multiple form management?
    By kpmsivachand in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2009, 06:40
  4. QFileDialog QGLWidget crashes
    By SenSej in forum Newbie
    Replies: 1
    Last Post: 17th October 2008, 17:06
  5. QFileDialog Crashes with Networked Drive
    By Rayven in forum Qt Programming
    Replies: 6
    Last Post: 20th February 2008, 02:01

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.