Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 2.4.1
-
None
-
2c7713a873e58866dc7d370900e7c800dc141896
Description
I'm trying to make the desktop qt-components from http://qt.gitorious.org/qt-components/desktop work inside Qt Designer. I'm trying to make the components appear under the "Items" list.
I successfully compiled it using qmake && mingw32-make install. This also copied all component files into \QtSDK\Desktop\Qt\4.8.1\mingw\imports\QtDesktop.
I am able to include the components in the editor using import QtDesktop 0.1. The following code correctly compiles, runs, and shows a button:
import QtQuick 1.1 import QtDesktop 0.1 Rectangle { width: 100 height: 100 Button { id: button text: "Push me" onClicked: button.text = "Pressed" } }
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 7 64bit and Fedora 16 32bit with the exact same result.
I've tried moving the components folder to \QtSDK\Desktop\Qt\4.8.1\mingw\imports\Qt\labs\components but this did not work.
I've also tried using qmlplugindump to generate the plugins.qmltypes file per these instruction: http://doc.qt.nokia.com/qtcreator-2.4/creator-qml-modules-with-plugins.html but was still unsuccessful. To do this I had to change the qt-components-desktop\src\src.pro file to build in release mode with CONFIG += release 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. I've attached the generated plugins.qmltypes file.
Update 04/13/12:
I've tried Qt Creator 2.4.82 (from revision ceaa3e7461) but the issue still occurs with the same steps.
Here are more specific steps which lead to the issue:
1. Open Qt Creator
2. Create a new "Qt Quick Application (Built-in Elements)" project
3. Select "Desktop" as the only target
4. Paste the code from above to replace the default opened qml file
5. Notice no errors with parsing the QtDesktop module or the Button component
6. Click on "Design"
7. Notice crash
Perhaps I shouldn't use mingw to compile the desktop components? Or is there an extra step to implementing the components to Creator?
How should I go about obtaining crash logs? I have access to both a windows and linux system.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-7354 Qt Creator crashes after switch to QML Designer while using QML Desktop Components
- Closed