Results 1 to 2 of 2

Thread: How to deal with application-wide actions?

  1. #1
    Join Date
    May 2011
    Posts
    46
    Thanks
    5

    Default How to deal with application-wide actions?

    Say if I have an app with multiple top-level main window and I want an action to quit the app when *any* of the main windows has the keyboard focus, do I have to add the action to all main windows? Or is there a way to handle application-wide actions?

  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: How to deal with application-wide actions?

    Can you explain a bit more what do you mean?
    Can you give an example for such a case?
    ==========================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 do I have some system-wide global hotkeys?
    By hakermania in forum Newbie
    Replies: 1
    Last Post: 11th May 2011, 09:08
  2. QTextEdit 80 chars wide
    By mpi in forum Qt Programming
    Replies: 4
    Last Post: 29th January 2011, 13:18
  3. Getting system wide X11 events problems
    By wandereq in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2010, 20:13
  4. QTreeWidget Items display too wide.
    By chris_helloworld in forum Qt Programming
    Replies: 2
    Last Post: 26th February 2010, 13:36
  5. Replies: 12
    Last Post: 23rd March 2007, 09:23

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.