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 native look-and-feel
Forum Update on Monday, May 27th 2025

Android native look-and-feel

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 4.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.
  • Z Offline
    Z Offline
    zilox
    wrote on last edited by
    #1

    Hello,

    from the posts for Qt 5.1 and Qt 5.2 it has been mentioned that there will be a native look-and-feel for android, like in:

    http://qt.digia.com/Product/Whats-New/Qt-51/
    -> "In Qt 5.1, these controls are supported on all desktop operating systems providing native look-and-feel. In the coming months, we will introduce support for touch-based controls and mobile look-and-feel. "

    or:
    http://www.kdab.com/qt-on-android-episode-1/

    On the last link, it is especialy mentioned Qt 5.2 brings android native style.

    I tried the Qt 5.2 alpha, beta and the rc1 from 22 november with Qt Quick 2.0 and Quick Controls and also a QWidget based approach and all of them do work (a huge improvement since the alpha version :) ) but none do look native. Do i miss something? I did take a look at the qt quick controls example

    http://qt-project.org/doc/qt-5.1/qtquickcontrols/touch.html

    but as this was an example for Qt 5.1 i thought it would still be improved, as the example uses png files for the native look-and-feel.

    So my question is, is there still something coming for the final release of Qt 5.2 for native look-and-feel, did i have so set some variable or is that it?

    Thank you for answers!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fonzi337
      wrote on last edited by
      #2

      I too am very much interested in knowing this. Will Qt 5.2 final have a native look-and-feel for Android and iOS Qt Quick Controls?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maitai
        wrote on last edited by
        #3

        I too was having the same misunderstanding... then I realized som:thing:

        When you deploy your qt application on your android device, you must specify that you want to use Ministro to get the qt libs. If you do that, then in QStyleFactory you get the Android style available. If you deploy your application the "normal" way, the style is just not available.

        And then just

        QStyle * android=QStyleFactory::create("Android");
        qApp->setStyle(android);
        

        and it's much better :)

        nb: of course take care not to overwrite it with some custom style/stylesheet later in your application

        I hope this helps
        Philippe.

        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