Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Image {
  2. anchors.rightMargin: 10
  3. anchors.leftMargin: 10
  4. anchors.bottomMargin: 10
  5. anchors.topMargin: 10
  6. anchors.fill: parent
  7. source: "Google Chrome Icon.png"
  8. fillMode: Image.PreserveAspectFit
  9. }
  10.  
  11. import QtQuick 1.0
  12.  
  13. Image {
  14. smooth: true // smoother image
  15. anchors.rightMargin: 10
  16. anchors.leftMargin: 10
  17. anchors.bottomMargin: 10
  18. anchors.topMargin: 10
  19. anchors.fill: parent
  20. source: "Google Chrome Icon.png"
  21. fillMode: Image.PreserveAspectFit
  22. }
  23.  
  24. QDeclarativeView view;
  25. view.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
  26. view.setResizeMode( QDeclarativeView::SizeRootObjectToView );
  27. view.setSource(QUrl("qrc:/main.qml"));
  28. view.show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement