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

Linking to 'testlib' to breaks bundle resource access and QCoreApplication::applicationDirPath()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.3.0 Beta1
    • Testing: qtestlib
    • None
    • ios, Mac

    Description

      Hi!

      I am experiencing the problem, both on Mac and iOS, that when I add this line to my qmake project:

      CONFIG += qmltestcase
      or
      QT += testlib

      Then QCoreApplication::applicationDirPath() returns a path that is actually two levels up from what it should be.

      Even further, the [NSBundle URLForResource] method stops working (returns empty urls, since it can not find the resources anymore).

      Any clue on what the problem is? Thanks a lot!

      Attachments

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

        Activity

          People

            macadder Jason McDonald
            raskolnikov Juan Pedro Bolivar Puente
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes