Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 8

Qt-interest Archive, March 2002
Here it is better to put class variables


Message 1 in thread

hi, 

i'd like to have information about class variables...

where is it better to put them whem im subclassing.
Is it in the FormBase or the Form class ? 

i imagine that il will work in both of them 
put if there is convention about that, i prefer 
to follow them  

thanks for the time ;) 


-- 
 [ signature omitted ] 

Message 2 in thread

This has nothing to do with Qt and would be better asked in a forum dealing 
with introductory C++ questions.

On Wednesday 20 March 2002 3:47 pm, dee dee wrote:
> hi,
>
> i'd like to have information about class variables...
>
> where is it better to put them whem im subclassing.
> Is it in the FormBase or the Form class ?

Well, if the variables are going to be used in all subclasses of FormBase, 
put them there.  If they are specific to Form and NOT to FormBase, put them 
in Form.