Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling Qt Quick Desktop Components for use in Qt Designer
    primarykey
    data
    text
    <p>I'm trying to make the desktop qt-components <a href="http://qt.gitorious.org/qt-components/desktop" rel="nofollow noreferrer">http://qt.gitorious.org/qt-components/desktop</a> work inside Qt Designer. I'm trying to make the components appear under the "Items" list.</p> <p>I successfully compiled it using <code>qmake &amp;&amp; mingw32-make install</code>. This also copied all component files into <code>\QtSDK\Desktop\Qt\4.8.1\mingw\imports\QtDesktop</code>.</p> <p>I am able to include the components in the editor using <code>import QtDesktop 0.1</code>. The following code correctly compiles, runs, and shows a button:</p> <pre><code>import QtQuick 1.1 import QtDesktop 0.1 Rectangle { width: 100 height: 100 Button { id: button text: "Push me" onClicked: button.text = "Pressed" } } </code></pre> <p><img src="https://i.stack.imgur.com/Atcl0.png" alt="Running example"></p> <p>However when I click on "Design" to enter the Qt Designer, it tries to load for a while and Qt Creator crashes. I've tried this on both Windows and Fedora with the same result.</p> <p>I've also tried moving the components folder to <code>\QtSDK\Desktop\Qt\4.8.1\mingw\imports\Qt\labs\components</code> but this did not work.</p> <p><strong>Update:</strong> I've tried using qmlplugindump to generate the plugins.qmltypes file per these instruction: <a href="http://doc.qt.nokia.com/qtcreator-2.4/creator-qml-modules-with-plugins.html" rel="nofollow noreferrer">http://doc.qt.nokia.com/qtcreator-2.4/creator-qml-modules-with-plugins.html</a> but was still unsuccessful. To do this I had to change the <code>qt-components-desktop\src\src.pro</code> file to build in release mode with <code>CONFIG += release</code> or else qmlplugindump will throw an error. The output plugins.qmltypes file looks good and is located in the same folder as the qmldir file.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload