Results 1 to 2 of 2

Thread: Displaying information in various windows

  1. #1
    Join Date
    Mar 2014
    Posts
    15
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Displaying information in various windows

    Hi,
    I have three windows A,B and C and some data is comming from library to display on these window. Now I want to display data on these windows and using some unique key or some other thing i have to determine in which window the data i have is displayed i.e whether the data is for Window A ,B or C.
    How to achieve this.
    Thanks

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Displaying information in various windows

    This doesn't sound like a Qt problem to me.

    Since we have no idea what your "library data" is, we have to assume that there is some information in the data that determines where it should be displayed. So a Qt solution is to set up 3 signals (dataAvailableForA(), dataAvailableForB(), dataAvailableForC()) in the code that reads the data and implement a slot in each of windows A, B, and C (onDataAvailable()). Connect the appropriate signal to each window's slot (i.e. connect dataAvailableForA() to A's onDataAvailable() slot, etc.). In your code that determines what type of data you have, emit the appropriate signal, and the window that is listening for it will know that it has data to display.

Similar Threads

  1. Replies: 0
    Last Post: 5th June 2013, 11:07
  2. Replies: 1
    Last Post: 31st March 2012, 19:21
  3. Replies: 2
    Last Post: 9th October 2010, 08:38
  4. How to get System Information(Windows)
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2008, 13:30
  5. Displaying windows depending on checkboxes
    By Salazaar in forum Newbie
    Replies: 1
    Last Post: 12th May 2007, 19:42

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.