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. Solved: Android Items displayed wrong
Forum Updated to NodeBB v4.3 + New Features

Solved: Android Items displayed wrong

Scheduled Pinned Locked Moved Mobile and Embedded
androidqt 5.4.1
1 Posts 1 Posters 740 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.
  • T Offline
    T Offline
    Tschini
    wrote on last edited by Tschini
    #1

    Hello, i just started with qt android, so i just put some buttons, text items and so on into a GUI and tested the app on a virtual android device and a nexus 7. On both devices the items are displayed in a wrong way. So my questions:

    • Did i setup qt in a wrong way?
    • How can debug these kind of errors?
    • Has anybody else struggled with this kind of problems?

    Some further Infos: I'm developing with: linux mit 64 bit, qt 5.4.1, qt creator 3.3.1 free version, android ndk r10, ant 1.9.4, java jdk 1.7

    Update:

    • Also the sample apps look similar...
    • Seems like the problem belongs to the android API version, the nexus has API version 22, after creating a virtual device with API 18 everything looks fine. Are there any workarounds to create
    • Found the solution in the qt blog: Just if anybody else is struggling; adding
      <application android:theme="@android:style/Theme.Holo.Light"
      ... or
      <application android:theme="@android:style/Theme.Holo
      in the AndroidManifest.xml solves these errors
      https://blog.qt.io/blog/2014/12/03/native-android-style-in-qt-5-4/

    a screensot from the test app:

    alt text

    sincerely martin

    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