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. Android: Qt Widgets native style
Forum Updated to NodeBB v4.3 + New Features

Android: Qt Widgets native style

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 2.2k 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.
  • W Offline
    W Offline
    whatisjeff
    wrote on last edited by
    #1

    Hello, I've written an app with the aim of making it cross compatible with all devices (desktops/mobile platforms). So far it seems to work with Windows and Mac, and recently I've gotten it to work on Android as well. However, it looks pretty terrible. According to "this blog post":http://blog.qt.io/blog/2014/12/03/native-android-style-in-qt-5-4/ Qt Widgets supports a native Android style. However, my app does not reflect that when I view it on an AVD or on my own phone.

    My question is, how do you enable the native Android style? And as a side note, does Qt Charts have an Android style as well?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt are you using ?

      Qt Charts is an Enterprise feature so you'll have to ask the support guys to have more information about it

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • W Offline
        W Offline
        whatisjeff
        wrote on last edited by
        #3

        I am using Qt 5.4

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Which version of Android are you running ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • W Offline
            W Offline
            whatisjeff
            wrote on last edited by
            #5

            Android 5.0.1 - API Level 21
            Intel Atom (x86)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Might be related to "this":https://bugreports.qt.io/browse/QTBUG-42644

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • W Offline
                W Offline
                whatisjeff
                wrote on last edited by
                #7

                I'm guessing that Qt Widgets is supposed to enable the Android style automatically but isn't doing it for new APIs? Here are some screenshots by the way of what it looks like:

                http://postimg.org/image/tgxttc2or/
                http://postimg.org/image/bgwe0zlz7/

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  AFAIK, it should and what you are seeing looks like what the bug report is about

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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