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. Deployed app(apk) looking different after first run
QtWS25 Last Chance

Deployed app(apk) looking different after first run

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 844 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.
  • cpperC Offline
    cpperC Offline
    cpper
    wrote on last edited by cpper
    #1

    Hello there :)
    With some effort I finally managed to install Qt for Android and wrote today my first testing app. Everything went ok when debugging(usb debugging on galaxy s5) but after deploying the app via "Bundle Qt libraries in APK" and installing+running it on the phone I encountered a problem.

    The layout/design/style of the app changes after the first time run. This is how the app looks after installing and tapping 'Open':
    alt text

    After closing the app via the back button and opening it again from the app drawer it looks like this:

    alt text

    As you can see something in the graphics changes. Any ideas what might cause this ?

    1 Reply Last reply
    0
    • cpperC Offline
      cpperC Offline
      cpper
      wrote on last edited by
      #2

      Update: It seems the same happens in Genymotion emulator.

      1 Reply Last reply
      0
      • cpperC Offline
        cpperC Offline
        cpper
        wrote on last edited by
        #3

        Looks like I've managed to do it by adding the following line into the main function :

        QApplication::setStyle(QStyleFactory::create("Android"));
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Out of curiosity, can you check what style is used by default ?

          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