Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QStandardPaths::HomeLocation in Qt 5.7

QStandardPaths::HomeLocation in Qt 5.7

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.2k 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.
  • A Offline
    A Offline
    Albus
    wrote on last edited by
    #1

    When compiling with Qt5.6.1 (and earlier versions) for iOS, we can get /path/to/MyApp.app by calling:

    QStandardPaths::writableLocation(QStandardPaths::HomeLocation)

    But Qt 5.7, we are not able to do this. Is there a design change for this function call?

    Is there any other way to get this directory? We need to get the deployed rcc files from there.

    Thank you very much!

    ? 1 Reply Last reply
    0
    • A Albus

      When compiling with Qt5.6.1 (and earlier versions) for iOS, we can get /path/to/MyApp.app by calling:

      QStandardPaths::writableLocation(QStandardPaths::HomeLocation)

      But Qt 5.7, we are not able to do this. Is there a design change for this function call?

      Is there any other way to get this directory? We need to get the deployed rcc files from there.

      Thank you very much!

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Albus Hi! Please file a bugreport to bugreports.qt.io.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Albus
        wrote on last edited by
        #3

        @Wieland thank you and it's done (https://bugreports.qt.io/browse/QTBUG-54214).

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Albus
          wrote on last edited by
          #4

          By the way, we can get the home directory by: QApplication::applicationDirPath(), make sure app is instantiated before calling this.

          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