Created
July 25, 2018 01:47
-
-
Save benlau/f0df7b0f131f8490ff265e7697365871 to your computer and use it in GitHub Desktop.
QML Tips #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
Item { | |
property alias content: content // 這裏不會產生任何的錯誤,外面若讀取xxx.content.value會回傳10. | |
Item { | |
id: content | |
property int value: 10 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment