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
Forum Updated to NodeBB v4.3 + New Features

Layout techniques for android development

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidqt 5.8androiddeployqt
6 Posts 4 Posters 2.4k 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.
  • P Offline
    P Offline
    prithiviraj
    wrote on 22 Mar 2017, 15:57 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.

    J E 2 Replies Last reply 23 Mar 2017, 05:51
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Mar 2017, 22:40 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 23 Mar 2017, 18:20
      0
      • P prithiviraj
        22 Mar 2017, 15:57

        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.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 23 Mar 2017, 05:51 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
        • S SGaist
          22 Mar 2017, 22:40

          Hi,

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

          P Offline
          P Offline
          prithiviraj
          wrote on 23 Mar 2017, 18:20 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 23 Mar 2017, 21:26 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
              22 Mar 2017, 15:57

              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 24 Mar 2017, 09:13 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

              1/6

              22 Mar 2017, 15:57

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved