Giter Club home page Giter Club logo

Comments (1)

VstefanV avatar VstefanV commented on September 28, 2024

Guus ,

ik weet niet of dit je verder helpt , eerste 2 ivm qml vs smart pointers
(issues?), daarna 3 links ivm qml als uitbreiding op c++

http://qt-project.org/wiki/SharedPointersAndQmlOwnership

"Currently, QML isn’t aware of QSharedPointer and friends, but internally
uses its own guard-types to react to QObject deletion. If you want to
ensure that the engine won’t delete the QObject you pass in, you need to
explicitly set the ownership of the QObject to CppOwnership (there’s a
QQmlEngine function to do so). Alternatively, if the QObject has a parent
(ownership parent) set, the engine won’t delete it"

http://stackoverflow.com/questions/19402279/qml-cannot-assign-assign-shared-ptrtrack-to-unknown-property-type

There is little point in passing a shared_ptr (or QSharedPointer) to QML,
thus the QML engine doesn't support it. QML supports a very limited list of
data types. If you're passing a pointer, it must be a naked pointer
to QObject.

hieronder vind je info over wat wel en niet kan bij het combineren van een
specifiek c++ model met qml

http://hybridcoding.blogspot.be/2013/01/storing-visual-qml-item-qquickitems-in.html

nog beter is deze van Qt
http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html

ftp://ftp.informatik.hu-berlin.de/pub/Linux/Qt/QT/videos/DevDays2011/TechnicalSessions/DevDays2011_-_Qt_Quick_Best_Practices_And_Design_Patterns.pdf

mvg,
stefan

2015-01-17 22:46 GMT+01:00 Guus [email protected]:

Hey guys,

How do we treat pointers? Do we use straight pointers, or smart pointers?
How do smart pointers combine with qml and qtquick2?


Reply to this email directly or view it on GitHub
#3.

from xmas.

Related Issues (2)

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.