Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFileDialog::getOpenFileName and QFileDialog::getSaveFileName hang on MacOS
QtWS: Super Early Bird Tickets Available!

QFileDialog::getOpenFileName and QFileDialog::getSaveFileName hang on MacOS

Scheduled Pinned Locked Moved General and Desktop
12 Posts 4 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    floatingWoods
    wrote on last edited by
    #1

    Hello,

    I have a major problem with following two functions:

    • QFileDialog::getOpenFileName
    • QFileDialog::getSaveFileName

    They hang (i.e. pressing the buttons won't close the dialog) on MacOS SnowLeopard. It has already been reported "here":https://bugreports.qt-project.org/browse/QTBUG-31486http://

    It was reported in May 2013 and is still not fixed. Would you know of any workaround?

    Thanks

    1 Reply Last reply
    0
  • SGaistS Offline
    SGaistS Offline
    SGaist Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    What version of Qt are you using with which version of OS X (10.6.8) ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
  • F Offline
    F Offline
    floatingWoods
    wrote on last edited by
    #3

    We are running Qt5.1.1, and Snow Leopard. We don't have more details, since that report is from a customer, but we will ask
    Thanks

    1 Reply Last reply
    0
  • F Offline
    F Offline
    floatingWoods
    wrote on last edited by
    #4

    Ok, just confirmed. It is OS X 10.6.8 v1.1

    1 Reply Last reply
    0
  • SGaistS Offline
    SGaistS Offline
    SGaist Lifetime Qt Champion
    wrote on last edited by
    #5

    Just to be sure, what version of OS X and which version of Xcode are you using for development ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
  • F Offline
    F Offline
    floatingWoods
    wrote on last edited by
    #6

    For development, I am using Lion 10.7.3. For the XCode version, I will only be able to confirm in 2 weeks (out of the office until then).
    Thanks

    1 Reply Last reply
    0
  • E Offline
    E Offline
    eric_vi
    wrote on last edited by
    #7

    i am getting the same issue with Qt 5.1.1 on Mac X.9, i have not tested on previous OS... but the same code using Qt 4.8.5 framework work fine...

    this sound as Qt 5.1 issue.. which is really a deal breaker until this is solved!

    1 Reply Last reply
    0
  • SGaistS Offline
    SGaistS Offline
    SGaist Lifetime Qt Champion
    wrote on last edited by
    #8

    What is your build setup ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
  • E Offline
    E Offline
    eric_vi
    wrote on last edited by
    #9

    build and test done on X.9 with QTCreator 2.8.1, frameworks QT 5.1.1

    that s my qmake

    qmake myproject.pro -r -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug

    in the project i have
    QT += svg
    QT += widgets
    QT += printsupport
    QT += opengl

    1 Reply Last reply
    0
  • SGaistS Offline
    SGaistS Offline
    SGaist Lifetime Qt Champion
    wrote on last edited by
    #10

    Can you try with 5.2 ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
  • E Offline
    E Offline
    eric_vi
    wrote on last edited by
    #11

    just tried with 5.2rc1 exact same issue... makes it unusable !

    if i use the non native option flag... all is good.. but the dialog sucks

    1 Reply Last reply
    0
  • D Offline
    D Offline
    daniel347x
    wrote on last edited by
    #12

    Is this still an issue? On Windows, with Qt 5.3 as of Oct 27 2014, with the following code:

    QString selectedFilter {"Comma-separated values (*.csv)"};
    QString the_file = QFileDialog::getSaveFileName(this, "Choose output file", current_file, QString {selectedFilter}, &selectedFilter, QFileDialog::DontConfirmOverwrite);
    

    ... the Cancel button works, and double-clicking on an existing file in the file dialog works, but typing a file name in the edit box and clicking "Save" does not close the dialog - instead, the focus returns to the edit box and the dialog remains open.

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved