qt-interest@trolltech.com
[Top] [All Lists]

Re: Creating private class variables in Qt Designer

Subject: Re: Creating private class variables in Qt Designer
From: Michael Sullivan
Date: Wed, 03 Aug 2005 20:36:34 -0500
On Wed, 2005-08-03 at 16:18 -0600, Christopher Thompson wrote:
> On August 3, 2005 04:03 pm, Michael Sullivan wrote:
> > How do I create private class variables in Qt Designer?  I have three
> 
> I am assuming you are using Qt3.
> 
> The way I always do it is to derive a new class from the one created with Qt 
> Designer.  Nevertheless, I just checked that you can do it straight from 
> inside Qt Designer itself.
> 
> When you do this, what do you see in the Class Variables section?  For me, I 
> get:
> public
>  int foo;
> 
> Also, did you remember to include variablesform.h and methodsform.h (or 
> whatever is appropriate) in your declaration includes?
> 
I see (in Designer)

(other stuff)
.
.
. 
Class Variables
|-public
|-protected
|-private
|--VariablesForm* vform;
|--MethodsForm* mform;
Signals
Forward Declarations
Includes (In Declaration)
|-"variablesform.h"
|-"methodsform.h"
Includes (In Implementation)

I am running Qt Designer 3.3.4.  In analyzing the ouput of the build I
see the user interface files parsed and converted into files and placed
into the .ui directory.  Why is it then still attempting to read
mainform.ui.h outside the .ui directory?



<Prev in Thread] Current Thread [Next in Thread>
  • Re: Creating private class variables in Qt Designer, Michael Sullivan <=