Results 1 to 2 of 2

Thread: Notifying Mainwindow of an event..

  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Notifying Mainwindow of an event..

    I have an application where I have a Mainwindow which handles
    page changes and a tree directory. Certain events that happen
    way down the line in other classes need to get propagated to
    my Mainwindow class.

    It at first seemed like a signal/slot implementation. However the
    class where this event occurs has no knowledge of the MainWindow class and
    vice versa so I cannot directly callback, or connect a MainWindow
    slot to this signal.

    There must be some slick way to accomplish this. All the options
    I have come up with seem clumsy and not in the QT way...

    I want to be able to generate this event and have only my MainWindow
    class see it.



    Mark

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Notifying Mainwindow of an event..

    Ignored events usually get propagated to parent widget.
    J-P Nurmi

Similar Threads

  1. Replies: 1
    Last Post: 16th October 2007, 22:41
  2. Replies: 1
    Last Post: 11th September 2007, 13:34
  3. The event fired by the mouse click on the frame
    By Placido Currò in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2007, 09:05
  4. Event - closing/activate window
    By chaimar in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2006, 09:12
  5. Workload in a QThread blocks main application's event loop ?
    By 0xBulbizarre in forum Qt Programming
    Replies: 14
    Last Post: 9th April 2006, 21:55

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.