Coder Social home page Coder Social logo

qmlfirst's Introduction

#QMLFirst

一个简单的图片展示程序主要练习C++与QMl混合编程(QML中使用c++类)

注意到的事情: d当QML想使用在C ++中定义的内容,比如方法要用Q_INVOKABLE修饰,枚举要用Q_MENUMS修饰,但是当我在用信号中传递一个我定义的枚举值时,报了一个未定义的错误,当时我是使用Q_EMNUMS的,后来我导出成qRegisterMetaType (“Handletype”);(前面的是c++中你要导出的Metatype,后面(“Handletype”),是你qml要用的东西)就解决了,而且导导成这个之后,不写Q_EMNUMS没事,我不明白原理,现在只是单纯的记录 -2019/7/28

qmlfirst's People

Contributors

suncaiyu avatar

Watchers

James Cloos avatar  avatar

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.