Hello,

I would llike to have an advice about the way to access elements in QT.

Most of the tutorials I've seen show classes with private pointers to access the elements like this:

Qt Code:
  1. class X {
  2.  
  3. private:
  4. QLineEdit * toto;
  5. QLineEdit * toto2;
  6. QLineEdit * toto3;
  7. ....
  8. }
To copy to clipboard, switch view to plain text mode 

If the GUI is complex, there is quickly a long list of variables.

I have also found "findChild" functions.

What is the best way to manipulate elements ? Are there differences in terms of memory occupation, access time... ?

Thanks in advance.