PDA

View Full Version : Call on Parent Object



hufgardm
7th September 2006, 14:50
Hi!

I have the Following problem.

I Created a Dialog, which has a MainWidget, which has a VBox, which has a Custom QWidget.

I want to call from this Custom QWidget a Funktion on the Dialog. Dialog::foo() is not usable because i need initializing things.

How can i get a Pointer on the Dialog-Object to call my funktion?


Thanks for the Help

jacek
7th September 2006, 15:11
The easiest way is to use signals & slots mechanism, unless you need a return value.