Results 1 to 1 of 1

Thread: Pass by reference in QtScript

  1. #1

    Default Pass by reference in QtScript

    Does anyone know if I can pass a parameter by reference in QtScript? For example,

    Qt Code:
    1. var nTimeOut = 0;
    2. app.getTimeOut(nTimeOut);
    3. if (nTimeOut > 0)
    4. {
    5. ...
    6. }
    To copy to clipboard, switch view to plain text mode 

    here app is an c++ object that I exposed to Qt script environment and I am trying to change the value of nTimeOut in the c++ side and want to catch the changed value from the script side.

    Thank you in advance.
    Last edited by jpn; 16th July 2009 at 15:45. Reason: missing [code] tags

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  3. MS Sql native driver??
    By LordQt in forum Qt Programming
    Replies: 4
    Last Post: 9th October 2007, 13:41
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  5. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15

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.