Results 1 to 4 of 4

Thread: Mouse events for the window itself instead of widgets, or if anything is updated.

  1. #1
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Mouse events for the window itself instead of widgets, or if anything is updated.

    I was building a calculator for a game (d&d like game) that allows to you make moves. The bad part, is it requires so much time, to do the calculations.

    I finished the function that totals everything, if worst comes to worst I suppose I could write an event for all of the 70 spin boxes.

  2. #2
    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: Mouse events for the window itself instead of widgets, or if anything is updated.

    What is the question?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Mouse events for the window itself instead of widgets, or if anything is updated.

    It seems that my last message did not go through from my word processor completely. I was wondering of an event that says if anything in the window is clicked, call this function.

  4. #4
    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: Mouse events for the window itself instead of widgets, or if anything is updated.

    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. How to get mouse click events outside the Qt window?
    By montylee in forum Qt Programming
    Replies: 11
    Last Post: 13th July 2015, 21:55
  2. Replies: 0
    Last Post: 18th November 2010, 16:48
  3. Replies: 2
    Last Post: 4th November 2010, 10:10
  4. Replies: 2
    Last Post: 10th June 2010, 05:58
  5. Catching Mouse Events on Top-Level Window
    By andyp in forum Qt Programming
    Replies: 6
    Last Post: 8th September 2009, 10:26

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.