PDA

View Full Version : Qt script



rajesh_clt3
26th July 2007, 05:29
I am trying to scripting my apllication. I tried a simple example, and tried to access a member function to "Qt script" from class. I faced a linker error of

unresolved external symbol "public: void __thiscall MyWidget::display(int)" . display (int) is the function which i tried to acess to script.I dont know why this came. plz help me

jacek
27th July 2007, 11:39
How did you implement MyWidget::display(int)?

fullmetalcoder
27th July 2007, 12:40
for functions to be scriptable they need to be declared as signals, slots or property-related (i.e. notified through a Q_PROPERTY() macro). Besides the class must be made available to the script engine.