PhotoQml

From Qt Wiki
Revision as of 10:46, 24 February 2015 by Maintenance script (talk | contribs)
Jump to navigation Jump to search



// File: Photo.qml
import Qt 4.7

Rectangle {
property alias imageFile: picture.source
property alias imageTitle: title.text

width: frameSize; height: frameSize
color: frameColor

Image {
id: picture
x: leftMargin; y: topMargin
}

Text {
id: title
x: 0; y: frameSize - bottomMargin
font.pixelSize: fontSize
width: frameSize; horizontalAlignment: Text.AlignHCenter
height: bottomMargin; verticalAlignment: Text.AlignVCenter
}
}