-
Notifications
You must be signed in to change notification settings - Fork 189
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
Problem with native appearance #50
Comments
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: |
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. |
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
![2014-03-16 22 27 55](https://camo.githubusercontent.com/e158e1ba9bc1f04cbf57c11ed30528e1e73ae7f010826f605ae7c1ca4b19f031/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f333236363438392f323433313635332f32626661306333362d616433632d313165332d396363662d6162643838616235316235332e706e67)
![2014-03-16 22 30 39](https://camo.githubusercontent.com/3aec26a1f8c0019f07b934f5c6a31cb44d5b7a444f186cba66b51897659709e3/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f333236363438392f323433313636302f37363337326363612d616433632d313165332d383335662d3932363233306634343531312e706e67)
qmlscene
it looks fine -But when i build application with go-qml it looks strange -
The text was updated successfully, but these errors were encountered: