Results 1 to 2 of 2

Thread: semaphores and passing variables between windows

  1. #1
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    70
    Thanked 7 Times in 6 Posts

    Default semaphores and passing variables between windows

    Hello!

    I've got application with 3 widows. One is always visible (main window). Only one of rest can be visible in a moment. In each window (code) I've got one or two timers. When one window is active I want to stop timers on the other window (i think something like semaphores will be useful), and also I want to pass some values between that windows. How can I do that things in a proper way?

    thanks in advance
    best regards
    Tomasz

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

    Default Re: semaphores and passing variables between windows

    When one window is active I want to stop timers on the other window
    You can override the hide() method, and stop the timers there. (for example)

    and also I want to pass some values between that windows. How can I do that things in a proper way?
    Read about Qt's signals and slot.
    ==========================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. The following user says thank you to high_flyer for this useful post:

    Tomasz (26th November 2010)

Similar Threads

  1. How to actually connect variables to the GUI ?
    By Computer Hater in forum Newbie
    Replies: 6
    Last Post: 14th November 2010, 23:49
  2. environmental variables
    By mohanakrishnan in forum Newbie
    Replies: 4
    Last Post: 26th October 2009, 09:43
  3. Replies: 2
    Last Post: 25th June 2009, 19:47
  4. howto: set windows system variables with Qt
    By informatics in forum Qt Programming
    Replies: 8
    Last Post: 18th July 2007, 12:18
  5. Replies: 2
    Last Post: 17th October 2006, 19:25

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.