Created
March 30, 2023 08:35
-
-
Save FONQRI/f802e45f9a349f2abb0c0346b3013723 to your computer and use it in GitHub Desktop.
QtQuickTutorialTextUsage2.qml for moderncpp.ir tutorial
This file contains hidden or 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
Text { | |
width: 40; height: 120 | |
text: 'A very long text' | |
// '...' shall appear in the middle | |
elide: Text.ElideMiddle | |
// red sunken text styling | |
style: Text.Sunken | |
styleColor: '#FF4444' | |
// align text to the top | |
verticalAlignment: Text.AlignTop | |
// only sensible when no elide mode | |
// wrapMode: Text.WordWrap | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment