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. Layout change after close and open app in android
Forum Updated to NodeBB v4.3 + New Features

Layout change after close and open app in android

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

    when I install my android application made in Qwidget Application to my android mobile and open it for the first time it appear like that in the photo,

    https://drive.google.com/open?id=0B5rlQZmglfhEUmtNalg3UjY1MVk

    but after close it and open it for the second time the layout change to that

    https://drive.google.com/open?id=0B5rlQZmglfhEMFFIWkoyeUVXUjA

    why the layout change and how to keep it as I open it for the first time when I clear app in setting or reinstall the app the layout work fine as first photo the problem for the second time I open it the button come smaller and every widget come smaller as in second image not as first time it seem to be ugly too any help please I am using qt 5.7 and try it on android 4.1 , 4.2.2 and 6.0.1 all the same thing

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      Everything is really as you programmed it to be...

      You "close" the app, but as is common in Android, it does not exit, but stays suspended in memory. The difference seems that in the second screenshot one of the buttons has lost focus and is lower. You should not worry about that but add code to the image that stabilises its size and aspect ratio.

      1 Reply Last reply
      0
      • AmrCoderA Offline
        AmrCoderA Offline
        AmrCoder
        wrote on last edited by
        #3

        I think the problem, not from image size all my app change to that layout this screen Shot from another widget from the same app the same problem too, this image after install app or clear its data from application management
        https://drive.google.com/open?id=0B5rlQZmglfhEOGVJNWxMNFVTOTQ

        and this after open its second time

        https://drive.google.com/open?id=0B5rlQZmglfhET01nM0h5Qlhscmc

        the same thing give me this strange layout I made some android application in Qwidget and work fine but on 5.5.1 and give me the normal layout I think there is something with version 5.7 for android?

        1 Reply Last reply
        0
        • AmrCoderA Offline
          AmrCoderA Offline
          AmrCoder
          wrote on last edited by
          #4

          solved i release my app in qt 5.5.1

          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