QtQuick 2.0: Unable to find a renderable master window



  • Whenever I try some example files that use the new features of QtQuick 2.0, the window pops up at minimum (incorrect) size and stays blank after resizing. The debugger shows the following error, showing that it does not recognize certain QtQuick 2.0 properties and that something window related goes wrong:
    @
    file:///D:/Documents/Visual Studio 2012/Projects/Qt5Test/particles_example_02.qml:63:13: Cannot assign to non-existent property "speed"
    speed : AngleDirection { angle: 270; angleVariation: 10; magnitude: 100}
    ^
    Remove me: fixing toplevel window flags
    Unable to find a renderable master window QQuickView(0x6d2388) when trying to render QQuickView(0x6d2388)
    @
    The Qml and C++ source are provided below.

    I have compiled the Qt 5.0.0 RC2 source using the MSVC 2012 makespec using
    @
    configure -debug-and-release -opensource -mp -nomake tests
    nmake
    @

    The process did not en in an error.

    However the same error shows up in Qt Creator when using the ready made libraries for MSVC 2010, using the initial code when creating a QtQuick 2.0 project, having only modified the qml source file.

    Qml Source:
    @
    import QtQuick 2.0
    import QtQuick.Particles 2.0

    Rectangle {
    id: root
    width: 360
    height: 600
    color: "black"

    ParticleSystem {
        anchors.fill: parent
    
        ImageParticle {
            source: "resources/particle.png"
            colorVariation: 1.0
        }
    
        Emitter {
            height: 10; width: 10
            anchors.bottom: parent.bottom
            anchors.horizontalCenter: parent.horizontalCenter
    
            speed : AngleDirection { angle: 270; angleVariation: 10; magnitude: 100}
            lifeSpan: 8000
            sizeVariation: 5
    
        }
    
        Gravity {
           anchors.fill: parent 
    angle: 90
           acceleration: 15
        }
    }
    

    }
    @

    C++ source:
    @
    #include <QtGui>
    #include <QtQuick>

    int main(int argc, char *argv[])
    {
    QGuiApplication app(argc, argv);

    QQuickView* view = new QQuickView;
    view->setSource(QUrl("particles_example_02.qml"));
    view->show();

    QObject::connect(view->engine(), SIGNAL(quit()), &app, SLOT(quit()));

    return app.exec();
    }
    @



  • I don't know if this will fix your problem, but the configure option -debug-and-release is only available for mac.



  • [quote author="Peter K" date="1355652408"]Whenever I try some example files that use the new features of QtQuick 2.0, the window pops up at minimum (incorrect) size and stays blank after resizing. The debugger shows the following error, showing that it does not recognize certain QtQuick 2.0 properties and that something window related goes wrong:
    @
    file:///D:/Documents/Visual Studio 2012/Projects/Qt5Test/particles_example_02.qml:63:13: Cannot assign to non-existent property "speed"
    speed : AngleDirection { angle: 270; angleVariation: 10; magnitude: 100}
    ^
    @

    [/quote]

    That property in Emitter was renamed to velocity months ago. Where did you get that example using "speed"?



  • "Developer-Guides":http://qt-project.org/wiki/Developer-Guides under "Particles and Graphics Effects in Qt Quick 2". Download link: "here":http://get.qt.nokia.com/developerguides/qteffects/particles_src.zip.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.