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

Problem with native appearance #50

Closed
sshikaree opened this issue Mar 16, 2014 · 9 comments
Closed

Problem with native appearance #50

sshikaree opened this issue Mar 16, 2014 · 9 comments

Comments

@sshikaree
Copy link

Hi! I've got a problem in Ubuntu 13.10. When i preview UI with qmlscene it looks fine -
2014-03-16 22 27 55
But when i build application with go-qml it looks strange -
2014-03-16 22 30 39

@Druage
Copy link

Druage commented Mar 18, 2014

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.

@sshikaree
Copy link
Author

Hmm.. But I don't touch C++ at all. Just opening qml file with Go application.

@Druage
Copy link

Druage commented Mar 18, 2014

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.

@sshikaree
Copy link
Author

Druage, thanks for helping! Here is simplified example - https://gist.github.com/sshikaree/536cb210c4be4aceead4 . And how it looks in QtCreator:
2014-03-19 08 59 58
and built with go-qml:
2014-03-19 08 59 08

@Druage
Copy link

Druage commented Mar 19, 2014

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.

@niemeyer
Copy link
Contributor

Thanks a lot for your help, @Druage. You've probably nailed down the issue. I'll see if using QApplication there solves the problem.

@niemeyer
Copy link
Contributor

It does solve the problem. Thanks for the report @sshikaree, and for pointing out the issue @Druage.

@Druage
Copy link

Druage commented Mar 19, 2014

@niemeyer Glad I could be of help and keep up the great work.

@sshikaree
Copy link
Author

Great! :-)

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

3 participants