/Fauxn

QML implementation of a "mock" Android phone.

Primary LanguageQMLGNU General Public License v3.0GPL-3.0

Fauxn

QML implementation of a "mock" Android phone.

Example GIF

Contents of phone are passed via contents property as a Component:

import QtQuick 2.15

Window {
    width: 900
    height: 900
    title: 'Fauxn'

    Fauxn {
        id: fauxn
        anchors.centerIn: parent
        contents: Item {
            Image {
                source: fauxn.landscape ? 'example_landscape.png' : 'example_portrait.png'
                fillMode: Image.Pad
                anchors.centerIn: parent
                width: sourceSize.width
                height: sourceSize.height
            }
        }
    }
}

This is tested against Qt 6.2.