Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Ways to make qml design responsive
Forum Updated to NodeBB v4.3 + New Features

Ways to make qml design responsive

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 325 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.
  • K Offline
    K Offline
    Kiovtorov
    wrote on last edited by Kiovtorov
    #1

    Hi,
    I really am searching for an easy way to make a responsive qml design. I found the breakpoints plugin on figma but unfortunetly when I export it to qt designer studio I get a blank window regardless of everything in the window in the figma file. Have anyone found some easy way as I have tried hard-coding responsive qml and it is painful (at least for me)

    1 Reply Last reply
    0
    • johngodJ Offline
      johngodJ Offline
      johngod
      wrote on last edited by
      #2

      Hi
      Not sure if it's the answer you're looking, I dont use Figma or any editor, I type all the code. I make responsive desings by using Flickable elements, anchoring, I use units in milimiters, insted of pixels, by using Screen.pixelDensity, and sizes based on windows percentage size. Sometimes I adapt the windows contents to the landscape or portrait mode. It's a bit of work typing all the stuff, but I got used to not using qmleditor, last time I tried, (long time ago), most values seem to be harcoded (or may it was just me that did not explore it enought), which breaks responsiveness.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        afalsa
        wrote on last edited by
        #3

        Hi, perhaps someone more experienced can give a more authoritative answer.

        I would swear that bridge plugins are for when you are making layouts with a pre-set window size. Say a car or an embedded device. For all other applications, e.g. desktop / mobile i use:

        • QtQuick.Layouts jugando con el Layout.MaximumWidth/Height and Layout.MinimumWidth/Height.
        • For FontSize you can find the way that matches your style by searching here "Theme.qml" or "Style.qml" -> SourceGraph

        Doc ref: Qt Scalability Page

        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