Hi,
I have a qwidget, that has as a member a 2-D array of ints. Now I'm having trouble accessing the vales in member functions of the widget.
Code:
// the .h file { Q_OBJECT . . . . protected: private: int myArrayOne[44][3];
Now in the class defintion
Code:
{ int myArrayOne[44][3] =.... . . . } { . . int k = myArrayOne[0][0]; int l = myArrayOne[0][1]; }
Now in the paintEvent the values are nonsense numbers and not the ones I specified above. But if I define the array in the paintevent it works ok. What am I missing here? Any help appreciated.
