Results 1 to 19 of 19

Thread: How to send message to Desktop Widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to send message to Desktop Widget

    Try using postEvent instead of sendEvent. But now you won't be able to see if it was accepted. Also you need to create the events on the heap.

    Regards

  2. The following user says thank you to marcel for this useful post:

    shyam prasad (17th April 2007)

  3. #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: How to send message to Desktop Widget

    Here my assumption was that this code should send an "Alt + PrintScreen" button press to the desktop widget which in effect should dump the "active window image" to the ClipBoard.
    In addition to what wysota said -
    I don't think this assumption of yours is correct.
    I would be surprized if the desktop it self was resposible for reacting to the key combination - and in this case dump a screen shot to the clip board.
    I would expect it to be done by the windowing system, not by a window.
    ==========================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.

  4. The following user says thank you to high_flyer for this useful post:

    shyam prasad (17th April 2007)

Similar Threads

  1. Controlling which widget on top layer?
    By JonathanForQT4 in forum Qt Programming
    Replies: 6
    Last Post: 22nd March 2007, 14:27
  2. Replies: 4
    Last Post: 10th March 2007, 18:01
  3. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57
  4. Replies: 4
    Last Post: 24th March 2006, 22:50
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16

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.