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. Qml Mobile Dynamic (or Responsive) Design

Qml Mobile Dynamic (or Responsive) Design

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 991 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by
    #1

    Hi; I want to dynamic (or responsive) design with Qml for mobile apps. (Image Link). But I want to align right Button 2 and I want to dynamic (or responsive) design with Qml. How can I do that? Thanks.

    1 Reply Last reply
    0
    • David.GD Offline
      David.GD Offline
      David.G
      wrote on last edited by
      #2

      Use a spacer most of the time it works. There are

      Layout.alignment: Qt.AlignLeft|AlignRight|etc which is an option but in some occasions doesn't follow through. Then there's a simple spacer doing (which you will put before the buttons you want to push to the right.

      Item {
      id: spacer
      Layout.fillWidth: true // will use up the rest of the space available, contrast to the other buttons that are normally fixed.
      Layout.fillHeight: true
      }
      

      As for dynamic response you could detect the width/height to act on it, and use the Loader type, thing is you will also need to keep track of user input and re-bind them as well. I'm no expert in the subject, having tried it to be dynamic response it can be quite a pain.

      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