GithubHelp home page GithubHelp logo

Problem with native appearance about qml HOT 9 CLOSED

go-qml avatar go-qml commented on July 22, 2024
Problem with native appearance

from qml.

Comments (9)

Druage avatar Druage commented on July 22, 2024

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.

from qml.

sshikaree avatar sshikaree commented on July 22, 2024

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

from qml.

Druage avatar Druage commented on July 22, 2024

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.

from qml.

sshikaree avatar sshikaree commented on July 22, 2024

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

from qml.

Druage avatar Druage commented on July 22, 2024

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.

from qml.

niemeyer avatar niemeyer commented on July 22, 2024

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

from qml.

niemeyer avatar niemeyer commented on July 22, 2024

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

from qml.

Druage avatar Druage commented on July 22, 2024

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

from qml.

sshikaree avatar sshikaree commented on July 22, 2024

Great! :-)

from qml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.