Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QML component inheritance - problem

$
0
0
@onek24: You are right I didn’t notice the “some code” mention. However it is still possible to move the rectangle and the outside code to Robot.qml @sibislaw2: Is something like below possible in your use case?     // MainWindow.qml           import QtQuick 2.1           Rectangle {     //some code     MyViewport {     }     }           // MyViewport.qml     import QtQuick 2.1     import Qt3D 2.0           Viewport {     // some 3D code     Robot{     }     }       // Robot.qml     import QtQuick 2.1     import Qt3D 2.0           Item3D {      // some 3D robot drawing code     }

Viewing all articles
Browse latest Browse all 4972

Trending Articles