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 techniques for android development
QtWS25 Last Chance

Layout techniques for android development

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidqt 5.8androiddeployqt
6 Posts 4 Posters 2.4k 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.
  • P Offline
    P Offline
    prithiviraj
    wrote on last edited by A Former User
    #1

    Hi Everyone,
    I'm developing GUIs for android phones which is going to acquire the data via Bluetooth from remote host. Here my all the logic are working very fine. but i'm not able to set the proper layou for my application. The radio buttons and text labels are not in expected size. images are getting resized as its own wish. i'm not able to correct it.
    Is there any techniques available to show all things in proper way. I don't want to write a separate coding for the gui using qml. I would like to design in .ui file itself by pick and drop.

    jsulmJ E 2 Replies Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What exactly did you try ?
      What do you expect to see ?
      What do you currently get ?

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

      P 1 Reply Last reply
      0
      • P prithiviraj

        Hi Everyone,
        I'm developing GUIs for android phones which is going to acquire the data via Bluetooth from remote host. Here my all the logic are working very fine. but i'm not able to set the proper layou for my application. The radio buttons and text labels are not in expected size. images are getting resized as its own wish. i'm not able to correct it.
        Is there any techniques available to show all things in proper way. I don't want to write a separate coding for the gui using qml. I would like to design in .ui file itself by pick and drop.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @prithiviraj said in Layout techniques for android development:

        Is there any techniques available to show all things in proper way

        Yes there is: http://doc.qt.io/qt-5/layout.html
        http://doc.qt.io/qt-5/examples-layouts.html

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          What exactly did you try ?
          What do you expect to see ?
          What do you currently get ?

          P Offline
          P Offline
          prithiviraj
          wrote on last edited by
          #4

          @SGaist I tried to display a form similar to sign up in all website with some line edits and radio buttons. In desktop GCC environment, the Gui is very properly coming. if I'm trying for Android ARM7a environment. radio button are not displaying properly and also images are automatically resized. i didn't set any fixed size for my window also.

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

            Can you share an example of widget that doesn't show as you wish on Android ?

            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
            • P prithiviraj

              Hi Everyone,
              I'm developing GUIs for android phones which is going to acquire the data via Bluetooth from remote host. Here my all the logic are working very fine. but i'm not able to set the proper layou for my application. The radio buttons and text labels are not in expected size. images are getting resized as its own wish. i'm not able to correct it.
              Is there any techniques available to show all things in proper way. I don't want to write a separate coding for the gui using qml. I would like to design in .ui file itself by pick and drop.

              E Offline
              E Offline
              Eeli K
              wrote on last edited by
              #6

              @prithiviraj Something like this could happen because of virtual coordinate system, http://doc.qt.io/qt-5/highdpi.html. Test with Qt::AA_EnableHighDpiScaling and Qt::AA_DisableHighDpiScaling and see what happens.

              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