[Interest] Annoying ApplicationWindow Error

Nurmi J-P jpnurmi at digia.com
Sat May 17 12:33:52 CEST 2014

On 16 May 2014, at 15:09, Jason H <scorp1us at yahoo.com> wrote:

> I picked a Qt Quick 2 project.

Is this a question? :) There are two kinds of Qt Quick project templates in Qt Creator.

1) Qt Quick UI

This is a pure QML project, which runs qmlscene. It doesn't matter whether you use Item or Window as the root element, because qmlscene will detect that and create a window if necessary.

2) Qt Quick Application

This is a QML/C++ project. When the project wizard asks you to "Select Qt Quick Component Set" you can choose either plain Qt Quick or Qt Quick Controls. This step is important, because if you choose Qt Quick, the project template (QtQuick2ApplicationViewer) assumes a root element that is an Item. If you choose Qt Quick Controls, you get a different template (QtQuick2ControlsApplicationViewer) that assumes a root element that is a Window.

J-P Nurmi

More information about the Interest mailing list