Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick 2.0: Unable to find a renderable master window
QtWS25 Last Chance

QtQuick 2.0: Unable to find a renderable master window

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peter K
    wrote on last edited by
    #1

    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();
    }
    @

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zamx
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • 4 Offline
        4 Offline
        416365416c
        wrote on last edited by
        #3

        [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"?

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Peter K
          wrote on last edited by
          #4

          "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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved