Closed sshikaree closed 10 years ago
Are you using QGuiApplication instead of QApplication? Look here http://qt-project.org/doc/qt-5/qtquickcontrols-overview.html I was having the same problem.
Hmm.. But I don't touch C++ at all. Just opening qml file with Go application.
Is this just a QML file without any backend golang code? If you post the results of your main function, I could solve this for ya.
Druage, thanks for helping! Here is simplified example - https://gist.github.com/sshikaree/536cb210c4be4aceead4 . And how it looks in QtCreator:
and built with go-qml:
Hmm I was reading the source code and I did not I could only find an instance in the capi where the developer uses QGuiApplication instead of QApplication in the newGuiApplication function. I'm not entirely sure, but this "could" be the issue. The developer would be able to help you more. You would need the QApplication instance because using QApplication applies widget styling. Sorry I couldn't fix the issue for you.
Thanks a lot for your help, @Druage. You've probably nailed down the issue. I'll see if using QApplication there solves the problem.
It does solve the problem. Thanks for the report @sshikaree, and for pointing out the issue @Druage.
@niemeyer Glad I could be of help and keep up the great work.
Great! :-)
Hi! I've got a problem in Ubuntu 13.10. When i preview UI with
But when i build application with go-qml it looks strange -
![2014-03-16 22 30 39](https://f.cloud.github.com/assets/3266489/2431660/76372cca-ad3c-11e3-835f-926230f44511.png)
qmlscene
it looks fine -