Results 1 to 3 of 3

Thread: QSA scripts: how to wait for events?

  1. #1
    Join Date
    Feb 2006
    Location
    Kungsbacka, Sweden
    Posts
    4
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default QSA scripts: how to wait for events?

    Hi,

    I have a Qt application with support for QSA scripts. Everything works fine, except that I need a way to put my scripts to sleep while my Application is performing a certain job. How can I wait for given number of seconds without freezing the application, alternatively, how can I wait until a certain signal from the application arrives?

    /Michael

  2. #2
    Join Date
    Jan 2006
    Location
    Sofia, Bulgaria
    Posts
    24
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: QSA scripts: how to wait for events?

    Why don't you use QThread for this job?

  3. #3
    Join Date
    Feb 2006
    Location
    Kungsbacka, Sweden
    Posts
    4
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: QSA scripts: how to wait for events?

    Thanks, I thought about that, too. It brings me to another question. How do I create standard Qt Objects in my script? Right now all I have access to are the objects which I explicitely make available through 'addObject' calls. How do I make the hierarchy of Qt objects, like QButton's, QString and QThread available to QSA scripts?

    e.g.

    var dlg = new QPushButton("hello");

    produces " use of undefined variable 'QPushButton' "

    /Michael

Similar Threads

  1. QSA: loading scripts at runtime
    By seneca in forum Qt Programming
    Replies: 0
    Last Post: 15th February 2006, 15:19

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.