Results 1 to 6 of 6

Thread: QtScript : Prototype-based inheritance, wrappers and setDefaultPrototype()

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtScript : Prototype-based inheritance, wrappers and setDefaultPrototype()

    Once again, thank you!

    I want to be able to expose objects from C++ but also create new instances in the QtScript. The only thing I should do therefore is to create a constructor function right?

    I think I'm getting my head around it!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtScript : Prototype-based inheritance, wrappers and setDefaultPrototype()

    Everything depends on how your objects should behave. Certainly providing a constructor function is a must if you want to create new C++ objects from within script environment.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QtScript and creating non QObject based objects
    By tbscope in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2011, 08:20
  2. function prototype variable declaration
    By john_god in forum General Programming
    Replies: 4
    Last Post: 31st July 2010, 18:47
  3. QtScript binding wrappers? An Easy Way?
    By Statix in forum Qt Programming
    Replies: 3
    Last Post: 27th June 2010, 17:03
  4. Replies: 0
    Last Post: 25th November 2009, 07:46
  5. Lumina GLSL IDE based on QtScript and dynamic Objects
    By oc2k1 in forum Qt-based Software
    Replies: 0
    Last Post: 12th August 2008, 04:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.