Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90496 QtAndroid namespace future in Qt 6
  3. QTBUG-90497

QtAndroid::androidSdkVersion() alternative in Qt 6

XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 6.2.0 FF
    • Extras: Android
    • None
    • Android
    • 2021wk06, 2021wk08PO2, 2021wk18PO2, 2021wk20PO2

      Many modules that implement some Android feature rely on QtAndroid::androidSdkVersion() which is used to check the the Android api version to use a correct Java method/API for a given Android version. However, one alternative to that is using QOperatingSystemVersion

      if (QOperatingSystemVersion::current() >= QOperatingSystemVersion::AndroidOreo)
          // Do stuff
      

       

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

            assam Assam Boudjelthia
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes