Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53539

Setting default QSettings path / format before creating QApplication breaks QPA loading for deployed bundle on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.4.2, 5.5.0, 5.6.0
    • Core: Other
    • None
    • macOS

    Description

      Calling QSettings setDefaultFormat / setPath prior to QApplication creation breaks QPA loading, presumably because it interferes with qt.conf parsing.

      Build the attached application with / without the #define in the .pro file commented out. Then run macdeploytqt to package / create qt.conf.

      With the #define set, the application will abort with no QPA found; clean, unset the define, rebuild, re-run macdeploy and it will work as expected.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            zakalawe James Turner
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes