Window not visible!!!

  • this is the exact code from Qt5 Cadaques Book. it runs the exe, i can see it in task manager but there is no window. i don't know what's wrong

    import QtQuick 2.12
    Image {
        id: root
        source: "images/background.png"
        Image {
            id: pole
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.bottom: parent.bottom
            source: "images/pole.png"
        Image {
            id: wheel
            anchors.centerIn: parent
            source: "images/pinwheel.png"

  • Moderators

    @nullbuil7 said in Window not visible!!!:

    this is the exact code from Qt5 Cadaques Book

    I do not know that one and you deliver not enough information.

    Pleas answer the following:

    How do you load the file, and in what
    QQuickWidget, QQuickView, QQmlApplicationEngine etc

    Is it your only QML file loaded, or is it inside a child of an other form ?


Log in to reply