Results 1 to 5 of 5

Thread: QFileDialog

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    skizzik Guest

    Default QFileDialog

    In my program I use a QFileDialog to let the user pick a file to open. This works perfect as it should both when I start the program from inside Qt and when I start the app-bundle in finder (I'm sitting on a mac).

    Now I want to deploy the application so it can be used on other computers without Qt installed. I use a script that copies some Qt frameworks (core and gui) to inside the app-bundle and then use install_name_tool. I have used the exact same script for many other programs before and it works perfect.

    The final app-bundle works fine to start. When I click the button to open the filedialog, it shows as it should. But when I close the dialog window, the program crashes with a EXC_BAD_ACCESS. It doesn't matter if I chose a file or not, it always crashes directly after I try to close the file dialog. I have commented out all the other code for the button-click so it must be something with the filedialog.

    The function is now:

    void MainWindow::button_clicked()
    {
    QString name = QFileDialog::getOpenFileName(this, "Open File");
    }

    Any ideas?
    Last edited by skizzik; 23rd August 2011 at 13:02.

Similar Threads

  1. QFileDialog use
    By Doug Broadwell in forum Qt Programming
    Replies: 4
    Last Post: 15th February 2008, 09:24
  2. QFileDialog
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2007, 13:41
  3. QFileDialog
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 29th November 2007, 13:36
  4. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 18:23
  5. [Qt4] need help with QFileDialog
    By patcito in forum Qt Programming
    Replies: 2
    Last Post: 7th January 2006, 18:00

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.