Results 1 to 10 of 10

Thread: is it possible to stay on a user defined infinite loop?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: is it possible to stay on a user defined infinite loop?

    And how do you expect to receive events if you are inside an infinite loop?
    How about just processing events in a "normal way"? By subclassing or using an even filter, that is..

  2. #2
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: is it possible to stay on a user defined infinite loop?

    Quote Originally Posted by jpn
    And how do you expect to receive events if you are inside an infinite loop?
    How about just processing events in a "normal way"? By subclassing or using an even filter, that is..

    i didnt get that...
    can u explain it...

    mahe2310

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: is it possible to stay on a user defined infinite loop?

    But why do you want to start your endless loop in the contructor and not just call it normally?
    But even so it would not work.
    What jpn means is, if the main event loop is stuck in your endless loop, it will never have time to attend the events.
    You should use an event filter.
    http://doc.trolltech.com/4.1/qobject...allEventFilter

    The above link is to the normal Qt4, but look the same in QTopia docs, I think it should be the same or very similar.

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
  •  
Qt is a trademark of The Qt Company.