Results 1 to 3 of 3

Thread: Qt script

  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Qt script

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt script

    How did you implement MyWidget::display(int)?

  3. #3
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt script

    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.
    Current Qt projects : QCodeEdit, RotiDeCode

Similar Threads

  1. need script to change qmake .pro file
    By rajeshs in forum Qt Programming
    Replies: 5
    Last Post: 7th July 2007, 17:53
  2. How to Execute Qt script from Qt
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 7th May 2007, 09:12
  3. Replies: 7
    Last Post: 15th April 2007, 01:39
  4. How to use shell script files ?
    By npc in forum Newbie
    Replies: 3
    Last Post: 15th February 2007, 08:26
  5. Windec and RTL script
    By Maxilys in forum KDE Forum
    Replies: 2
    Last Post: 23rd February 2006, 02:25

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.