[OT] kdevelop and qt designer

williams ray freemyworld77 at yahoo.com
Tue Sep 9 13:01:15 UTC 2003


--- Bernd Pol <bernd.pol at online.de> wrote:
> On Tuesday 09 September 2003 10:38, williams ray
> wrote:
> > --- Bernd Pol <bernd.pol at online.de> wrote:
> > > The missing members are declared in
> mywindowbase.h
> > > which kdevelop should have
> > > automatically generated from mywindowbase.ui
> > > (actually qt designer does).
> > > Just include it in mywindow.
> > >
> > > Bernd
> >
> > do you mean include every missing member by my
> hands?
> > i find it still not comfortable....... or maybe i
> > still miss something.
> >
> Not at all. If everything runs right all
> declarations should be readily there 
> in the mywindowbase.h file, provided you named
> everything in mywindowbase.ui 
> correctly. If for instance you use QtDesigner to set
> up a dialog which 
> contains a myButton pushbutton entry, then
> - in Qt Designer select the pushbutton picture
> - select Name in the Properies table which
> QTDesigner now shows up and enter 
> myButton in the Value filed
> - close QtDesigner and return to KDevelop, there
> build the project
> - check the build directory, a mywindowbase.h file
> must be there
> - check  mywindowbase.h, it should contain a
> declaration like
>    QPushButton* myButton;

ok, where i'll initialize it?


> So all you need to do is to include mywindowbase.h
> in your mywindow.cpp. Any 
> change - additional elements, deletions, renames -
> in the mywindowbase.ui 
> will automatically be reflected after the next
> project build. No extra 
> fiddling needed at all.
> 
> Bernd
> 
> 
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following
> body:
> unsubscribe »your-email-address«

in this case i'll have to initialize a base class
member from a children constructor; the same as well
for controls and various code.
In my opinion this (unless i bad understood) is a bad
c++ coding style.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list