Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Consistent layout in different OS (macOs and RaspberryOs) with QtDesigner
Forum Update on Monday, May 27th 2025

Consistent layout in different OS (macOs and RaspberryOs) with QtDesigner

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 265 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.
  • S Offline
    S Offline
    sLawalata
    wrote on last edited by
    #1

    Hi,

    Hopefully, someone has faced my situation and have a better idea of how to solve it :)

    I have tried to build simple apps + UI with mac QtDesigner, with a fixed layout and size...
    Basically, the app uses pyQt, loads UI, and does all stuff using python.

    Then I run it on RasberryOs (Buster-Debian) and I get a weird or chaos looks :) The layout seems broken while the functionalities work.

    Currently, I fix the layout out with QtDesigner in Raspberry which is very slow.

    Is any way, workflow or how-to building a layout on mac or a faster computer then run it later on RasberryOs or slower limited devices?

    Maybe a constant font and size will be difficult or need a tweak but at least the form size and widget size is constant between platform.

    Any suggestion is welcome.

    Createad -> qtDesigner (mac 5.9.6) Qt5, BigSure
    Deployed -> Raspberry 4, Qt5, Buster (Debian).

    PyQt5
    Version: 5.15.4

    thanks in advance.

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

      Hi and welcome to devnet,

      @sLawalata said in Consistent layout in different OS (macOs and RaspberryOs) with QtDesigner:

      with a fixed layout and size...

      That is already bad omen with regard to the result you want.

      The idea behind layouts is that it allows you to have your controls automatically resized/placed when you resize the widget on which the layout is applied.

      Therefore I would recommend to first check with a minimal project with a layout, two-three buttons and nothing fixed to see how it behaves on your target.

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

      S 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        @sLawalata said in Consistent layout in different OS (macOs and RaspberryOs) with QtDesigner:

        with a fixed layout and size...

        That is already bad omen with regard to the result you want.

        The idea behind layouts is that it allows you to have your controls automatically resized/placed when you resize the widget on which the layout is applied.

        Therefore I would recommend to first check with a minimal project with a layout, two-three buttons and nothing fixed to see how it behaves on your target.

        S Offline
        S Offline
        sLawalata
        wrote on last edited by
        #3

        @SGaist Thank you for your suggestion. I will try what have you suggested.

        many thanks.

        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