Results 1 to 3 of 3

Thread: Scripting engine

  1. #1
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Scripting engine

    Hi,

    I'm building a system whcih stores content into a cache structure along which a bunch of metadata.
    I was planning on creating a plugin system to allow users to create their own plugins for exporting content and data from the system in their own way.
    For example, they may want to change the name's that image files are given based on the associated data, or generate pdfs of images contained in the cache, or maybe multipage tiffs, etc.
    While this is good in theory, it does mean that they'd need some basic understanding of C++, and be able to make calls to an API I'm creating, as well as have Qt installed in order to build the plugin.
    I'd like to retain this plugin architecture for proprietary plugins that I'd write, but I'd like to build one that reads a script file so that more business process oriented people could more easily just tinker with a simple script to get the desired output if they so desire.

    Can anyone suggest how I might go abotu embedding a scripting engine within a Qt application and which language would be more suited to the environment?
    I was thinking maybe python or lua, but I'd be interested to see how people have tackled a similar problem.

    Thanks,

    Steve York.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Scripting engine

    Maybe QSA can do what you want?
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    stevey (29th October 2006)

  4. #3
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Scripting engine

    Thanks so much, that looks like what I need.
    I've seen the word QSA while browsing the Trolltech but never bothered to pay attention and find out what it was.

    Sounds like it will make the task of binding classes much easier than other approaches.
    Thanks again

Similar Threads

  1. Using QGLWidget paint engine to draw regular widgtes?
    By high_flyer in forum Qt Programming
    Replies: 11
    Last Post: 9th October 2006, 12:06
  2. Scripting questions
    By fullmetalcoder in forum General Discussion
    Replies: 1
    Last Post: 22nd May 2006, 13:02

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.