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. Change implementation according to different platform
Forum Update on Monday, May 27th 2025

Change implementation according to different platform

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 587 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
    stereomatching
    wrote on 26 Dec 2013, 13:01 last edited by
    #1

    ex :

    Rectangle{

    android{
    width: 320
    height: 240
    }

    win32{
    width: 640
    height: 480
    }

    }

    I remember I saw something like this before, but can't find it now(what keyword?).

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on 1 Jan 2014, 04:07 last edited by
      #2

      "Overview of the new features in Qt Quick":http://blog.qt.digia.com/blog/2013/06/21/overview-of-the-new-features-in-qt-quick/

      bq. Jens Bache-Wiig says:
      June 21, 2013 at 22:26
      Sure for instance:
      anchors.margins: Qt.platform.os === "mac" ? 12 : 4
      Alternatively you can use this in a loader to load different files based on platform.

      1 Reply Last reply
      0

      2/2

      1 Jan 2014, 04:07

      • Login

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