eva2002
26th January 2010, 04:58
Hi all,
I have 2 forms say f1, f2. f1 calls (loads) f2;
I want to pass some content from f1 to f2. Do I create a public function which pass the data or is there some other way?
eg. f1 text to f2 label.
f2.h
public:
...
void f2_label_set_Text();
....
In f2, I got a custom GraphicsView with custom mousePressEvent. How can I ref to and object in f2 inside mousePressEvent of the custom GraphicsView?
I have 2 forms say f1, f2. f1 calls (loads) f2;
I want to pass some content from f1 to f2. Do I create a public function which pass the data or is there some other way?
eg. f1 text to f2 label.
f2.h
public:
...
void f2_label_set_Text();
....
In f2, I got a custom GraphicsView with custom mousePressEvent. How can I ref to and object in f2 inside mousePressEvent of the custom GraphicsView?