--===============2001048234== Content-Type: multipart/alternative; boundary="0-1315492891-1266528164=:59842" --0-1315492891-1266528164=:59842 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you. I more or less understand how signals/slots operate from the mai= n window. I just don't get how they work if I have to open a second window = from the main window and display a message by clicking a button in the seco= nd window with passing some variables to it. That's the problem. I've got a worked example using delegates that I mentioned before. I've actually separated it out in to a helper function (because I _hate_ the magic strings and want to type them as little as possible), but the full code is available online at http://dev.ibboard.co.uk/projects/warfoundry/browser/IBBoard.WarFoundry.GUI= .QtSharp/trunk/MainWindow.cs?rev=3D486#L76 Basically, if "menuAction" is a QAction (e.g. from a menu) and "method" is a method that matches the SlotFunction delegate signature then: QObject.Connect(menuAction, SIGNAL("triggered()"), method); will add the delegate as a slot method that gets called when the triggered signal (clicking the menu item) occurs. =0A=0A=0A ____________________________________________________________= ______________________=0AYahoo!7: Catch-up on your favourite Channel 7 TV s= hows easily, legally, and for free at PLUS7. www.tv.yahoo.com.au/plus7 --0-1315492891-1266528164=:59842 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
=0A=0A=0A=0A
=0AYahoo!7: Catch-up on your favourite = Channel 7 TV shows easily, legally, and for free at PLUS7. Check it out. --0-1315492891-1266528164=:59842-- --===============2001048234== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings --===============2001048234==--
Thank you. I more or less understand how sign= als/slots operate from the main window. I just don't get how they work if I= have to open a second window from the main window and display a message by= clicking a button in the second window with passing some variables to it. = That's the problem.

I've got a worked example using delegates that I mentioned before. I'veactually separated it out in to a helper function (because I _hate_ themagic strings and want to type them as little as possible), but the full<= br>code is available online at
http://dev.ibboard.co.uk/projects/warfoundry/browser/IBB= oard.WarFoundry.GUI.QtSharp/trunk/MainWindow.cs?rev=3D486#L76

Ba= sically, if "menuAction" is a QAction (e.g. from a menu) and "method"
is= a method that matches the SlotFunction delegate signature then:

QOb= ject.Connect(menuAction, SIGNAL("triggered()"), method);

will add th= e delegate as a slot method that gets called when the
triggered signal (= clicking the menu item) occurs.