Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt Creator Support #284

Open
terrylu87 opened this issue Sep 17, 2015 · 11 comments
Open

Qt Creator Support #284

terrylu87 opened this issue Sep 17, 2015 · 11 comments

Comments

@terrylu87
Copy link

It's great to find such an amazing project. I just open the demo project in QtCreator, but the Qt Designer reported that "Qt Quick emulation layer crashed". I wonder is it possible to use the Material components in the way like the original Qt components in Qt Designer ? Support such action like drag and drop move, and can be preview in the IDE.
Thanks in advance.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@IdrissDimson
Copy link

I think you can use QtCreator?@ibeliever am i wrong?

@iBelieve
Copy link
Member

@Viruska It doesn't quite work properly. I don't get crashing, but the Material components aren't available to add to the designer view, and don't render when added manually.

@terrylu87
Copy link
Author

@ibeliever Thank you. I'll find another way to do the job.

@fotiDim
Copy link

fotiDim commented Sep 27, 2015

This would be useful.

@nbigaouette
Copy link
Contributor

@ibeliever I'd really like to see QtCreator working for using qml-material. I do get the crash. Here's a screenshot:

issue284

I've made a repo to show the problem: https://github.com/nbigaouette/issue284

Note: I do not install qml-material. I simply point to it in my .qmlproject. See the repo.

Could it simply be that Qt Creator can't find the components and thus crash?

@nbigaouette
Copy link
Contributor

Here's the output of Qt Creator after opening the .qml file in the "Design" tab:

~/Qt/Tools/QtCreator/bin/qtcreator
Process crashed: ("{3d1fbb66-5b65-4e2d-ab5f-b43bde308a8c}", "rendermode", "-graphicssystem raster") exitCode: 11
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process finished: ("{3d1fbb66-5b65-4e2d-ab5f-b43bde308a8c}", "editormode", "-graphicssystem raster") exitCode: 0
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process finished: ("{3d1fbb66-5b65-4e2d-ab5f-b43bde308a8c}", "previewmode", "-graphicssystem raster") exitCode: 0
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process crashed: QTimer(0x738b140) exitCode: -1
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process crashed: ("{dd2cdf7d-7394-403d-b0bf-54261e14494b}", "rendermode", "-graphicssystem raster") exitCode: 11
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process finished: ("{dd2cdf7d-7394-403d-b0bf-54261e14494b}", "editormode", "-graphicssystem raster") exitCode: 0
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process finished: ("{dd2cdf7d-7394-403d-b0bf-54261e14494b}", "previewmode", "-graphicssystem raster") exitCode: 0
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState

@nbigaouette
Copy link
Contributor

Accessing the "Design" tab a second time I get this (additionally to the crash):

file:///~/Qt/Tools/QtCreator/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml:125:9: QML Image: Failed to get image from provider: image://qmldesigner_stateseditor/baseState-3
Process crashed: ("{c9ad0682-2842-4a07-9ba3-b60813573ac7}", "rendermode", "-graphicssystem raster") exitCode: 11
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process finished: ("{c9ad0682-2842-4a07-9ba3-b60813573ac7}", "previewmode", "-graphicssystem raster") exitCode: 0
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
Process finished: ("{c9ad0682-2842-4a07-9ba3-b60813573ac7}", "editormode", "-graphicssystem raster") exitCode: 0
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState

@nbigaouette
Copy link
Contributor

Could it be "Page" related? Commenting out the initialPage property of Material.ApplicationWindow so that no page is created allows opening the designer without crash or stdout output...

@nbigaouette
Copy link
Contributor

Just an update: with Qt Creator v3.6.0 I don't get crashes anymore. If qml-material has been installed properly, loading a basic qml file that uses Material components with the Designer will show "something".

Now that something is still broken. No Material components are visible. For example, any Material components will show up with exclamation marks in Designer's "Navigator" panel (bottom left). The whole component will also not be shown in the main edit panel.

I also cannot see Material components in Creator's "QML Types".

@JosephMillsAtWork
Copy link

Add info file to scan after build and it works for me .

@nbigaouette
Copy link
Contributor

@JosephMillsAtWork What do you mean? I'm not sure I understand the steps you suggest...

Note that #470 seems to be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants