PDA

View Full Version : using QT c++ code in QtScript



adeel.nayazi
21st February 2011, 12:23
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????

wysota
21st February 2011, 13:16
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.