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

Change implementation according to different platform

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 584 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 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 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

      • Login

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