Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QtAndroid::requestPermissions() in Qt6
Forum Update on Tuesday, May 27th 2025

QtAndroid::requestPermissions() in Qt6

Scheduled Pinned Locked Moved Unsolved Qt 6
6 Posts 5 Posters 1.4k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dmitry.Sokolov
    wrote on 7 Jun 2021, 09:26 last edited by
    #1

    QtAndroid::requestPermissions()

    Looks like it's not available in Qt6, so, how to request permissions?

    1 Reply Last reply
    1
    • V Offline
      V Offline
      VRonin
      wrote on 13 Jun 2021, 09:07 last edited by
      #2

      It's coming in Qt 6.2 QCoreApplication::requestPermission (https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission)

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      D 1 Reply Last reply 29 May 2022, 12:54
      1
      • R Offline
        R Offline
        russkij
        wrote on 15 Nov 2021, 15:33 last edited by
        #3

        Is there something new here?
        Qt 6.2.1 does not have QCoreApplication::requestPermission.

        1 Reply Last reply
        0
        • V VRonin
          13 Jun 2021, 09:07

          It's coming in Qt 6.2 QCoreApplication::requestPermission (https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission)

          D Offline
          D Offline
          danryu
          wrote on 29 May 2022, 12:54 last edited by danryu
          #4

          This link doesn't show any info for requestPermission()
          https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission
          Has it been removed? :/

          I'm wondering if it's going to be a blocker for me with Qt6 and Android right now, or if there's a workaround to implement until the API appears in ... 6.4?

          J 1 Reply Last reply 29 May 2022, 15:18
          0
          • D danryu
            29 May 2022, 12:54

            This link doesn't show any info for requestPermission()
            https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission
            Has it been removed? :/

            I'm wondering if it's going to be a blocker for me with Qt6 and Android right now, or if there's a workaround to implement until the API appears in ... 6.4?

            J Offline
            J Offline
            JonB
            wrote on 29 May 2022, 15:18 last edited by JonB
            #5

            @danryu
            I think you are supposed to refer to https://doc.qt.io/qt-6/qtandroidprivate.html#requestPermission ?
            And maybe read https://doc.qt.io/qt-6/qtandroidprivate.html#requestPermission https://bugreports.qt.io/browse/QTBUG-90498

            1 Reply Last reply
            0
            • D Offline
              D Offline
              danryu
              wrote on 30 May 2022, 10:01 last edited by
              #6

              Thanks @JonB - I also just discovered the notes at https://www.qt.io/blog/qt-extras-modules-in-qt-6.

              Using Qt 6.3.0, I've enabled the private headers ( QT += core-private ) and with a slight re-write, the permission checks and requests seem to be working fine.

              1 Reply Last reply
              1

              • Login

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