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
Qt Code:
  1. public:
  2. ...
  3. void f2_label_set_Text();
  4. ....
To copy to clipboard, switch view to plain text mode 

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?