Results 1 to 3 of 3

Thread: ow to remove spontaneous events from application?

  1. #1
    Join Date
    Dec 2008
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default ow to remove spontaneous events from application?

    My application CPU usage is high even while just sitting there with no activity, and increases with mouse hovers, etc. Is there a way to limit external events from the application? I do not want to disable all event as I do have a user interface, but would like to limit the cpu usage when the app is idle. I believe this is from spontaneous events, if so how do I catch and remove at the application level, and if not spontaneous event, what could the issue be?

    thanks. barrygp

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: ow to remove spontaneous events from application?

    You can always install an event filter.

    However, I believe this is absolutely not the correct way to deal with this problem as holding back events might result in unknown behavior.
    The correct way to handle this is find out why hovering the mouse over an object increases the cpu usage and than try to keep it down. In other words, are repaints and animations really necessary to the workflow of the program?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: ow to remove spontaneous events from application?

    If you are using Graphics View then such slowdowns might be the effect of incorrectly defined bounding rectangles for items and accepting hover events for too many items.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 26th August 2010, 16:58
  2. Sending events for other application
    By .:saeed:. in forum Qt Programming
    Replies: 0
    Last Post: 10th August 2010, 17:38
  3. spontaneous events
    By onamatic in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2010, 08:29
  4. Qt Capture windows events outside the application
    By flair-kun in forum Qt Programming
    Replies: 3
    Last Post: 15th December 2009, 23:56
  5. Remove Title and Context bar when running Qtopia application
    By dkt8154 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th November 2008, 09:05

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.