Advertisement
Guest User

main.qml

a guest
May 31st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.28 KB | None | 0 0
  1. import QtQuick 2.12
  2. import Qt3D.Core 2.12
  3. import Qt3D.Render 2.12
  4. import Qt3D.Input 2.12
  5. import Qt3D.Extras 2.12
  6. import QtQuick.Window 2.12
  7. import QtWayland.Compositor 1.3
  8. import QtQuick.Scene3D 2.12
  9.  
  10. WaylandCompositor {
  11.     // The output defines the screen.
  12.     WaylandOutput {
  13.         sizeFollowsWindow: true
  14.         window: Window {
  15.             width: 1024
  16.             height: 768
  17.             visible: true
  18.  
  19.             Scene3D {
  20.                 aspects: [ "input", "render" ]
  21.                 anchors.fill: parent
  22.                 anchors.margins: 0
  23.                 focus: true
  24.                 cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
  25.  
  26.                 SceneRoot {
  27.                     id:sceneRoot
  28.                 }
  29.             }
  30.         }
  31.     }
  32.  
  33.  
  34.     WlShell {
  35.         onWlShellSurfaceCreated:
  36.             shellSurfaces.append({shellSurface: shellSurface});
  37.     }
  38.     XdgShellV6 {
  39.         onToplevelCreated:
  40.             shellSurfaces.append({shellSurface: xdgSurface});
  41.     }
  42.     XdgShell {
  43.         onToplevelCreated:
  44.             shellSurfaces.append({shellSurface: xdgSurface});
  45.     }
  46.     IviApplication {
  47.         onIviSurfaceCreated:
  48.             shellSurfaces.append({shellSurface: iviSurface});
  49.     }
  50.     ListModel { id: shellSurfaces }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement