Julieng031
30th September 2013, 16:45
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:
class X {
private:
QLineEdit * toto;
QLineEdit * toto2;
QLineEdit * toto3;
....
}
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.
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:
class X {
private:
QLineEdit * toto;
QLineEdit * toto2;
QLineEdit * toto3;
....
}
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.