Results 1 to 2 of 2

Thread: using QT c++ code in QtScript

  1. #1
    Join Date
    Feb 2011
    Posts
    3
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default using QT c++ code in QtScript

    Hello i have made a QT ui and a QT c++ code that work together perfectly. Now the problem is that I want to run that UI in a software(made in QT) that allows use of QT ui in it with QTScripts . My question is Can I use the same C++ code there instead of QTScript????

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

    Default Re: using QT c++ code in QtScript

    If you pack it into a QtScript function then yes. There is a whole chapter in the docs about calling C++ functions from within QtScript.
    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
    By wookoon in forum Newbie
    Replies: 4
    Last Post: 4th July 2010, 11:53
  2. Replies: 1
    Last Post: 27th February 2010, 10:33
  3. Replies: 0
    Last Post: 25th November 2009, 07:46
  4. QtScript
    By QTInfinity in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2008, 20:10
  5. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47

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.