Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Image {
- anchors.rightMargin: 10
- anchors.leftMargin: 10
- anchors.bottomMargin: 10
- anchors.topMargin: 10
- anchors.fill: parent
- source: "Google Chrome Icon.png"
- fillMode: Image.PreserveAspectFit
- }
- import QtQuick 1.0
- Image {
- smooth: true // smoother image
- anchors.rightMargin: 10
- anchors.leftMargin: 10
- anchors.bottomMargin: 10
- anchors.topMargin: 10
- anchors.fill: parent
- source: "Google Chrome Icon.png"
- fillMode: Image.PreserveAspectFit
- }
- QDeclarativeView view;
- view.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
- view.setResizeMode( QDeclarativeView::SizeRootObjectToView );
- view.setSource(QUrl("qrc:/main.qml"));
- view.show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement