Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [CPP2QML Boxing/Wrapping]
Forum Updated to NodeBB v4.3 + New Features

[CPP2QML Boxing/Wrapping]

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 714 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mp3butcher
    wrote on last edited by
    #1

    Hello, I would like community opinions about the need of QML semi-automatic wrapping and to know if it's planned as future Qt internal roadmaps..

    My basic idea was to use QT wrapping in order to do create and call method object at runtime as "cppintrospection":https://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCUQFjAA&url=https://github.com/sat-metalab/cppintrospection&ei=eOS6VJWAIYrnUvHNgrAL&usg=AFQjCNGSxZPYiN_1jW_ODKA9ae1mCzFC_A&sig2=25yrpLDra-_pd65d1BBlDA&bvm=bv.83829542,d.d24...
    But QML seamed quite promising in order to bring both wrapping and graphical boxing

    So I develop some kind of preprecompiler (before moc so I called it pmoc) that read cpp headers and generates customisable QMLplugin code in order to handle:
    -Nodal logic ( via config file:copy/paste+fx ambiguities leverage)
    -Pointer life cycle ( via config file: handle smartpointer/normalpointer)
    -Native object boxing (put native object in QT boxes)
    -QML method wrapping (not finished..I'm doing it by hand for the moment)

    I tryied to explain a test case applying code generation to OpenSceneraph library on the website http://osg4noob.olympe.in but it's not very technically detailled....(and written in French)
    Here's a video rush
    http://youtu.be/yAYs5-lYj7k

    So the purpose of the underlying tool is not restricted to osg but almost all cpp libraries (without twisted stuff...ex: I have some grammar problems parsing Bullet headers)

    So Before you tell it "Yes, the interface is ugly" because osg is my testbench and I have lower level things to do like improve the generated code for ex...

    Here's an external reference about something near to what i'm doing (https://www.qtdeveloperdays.com/2013/sites/default/files/presentation_pdf/QtDevDaysSFO-2013_WrappingCppForQml_final.pdf)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved