Problem with subclassing

Stelian Iancu stelian.iancu at gmx.net
Sat Apr 19 15:57:56 BST 2003


On Saturday 19 April 2003 15:15, Holger Schröder wrote:
> Hi,
>
> i guess the problem is, that the CentralViewBase is saved as
> CentralViewBase.ui, and when the subclassing method tries to
> subclass from say centralviewbase.h, it does not exist, so you get
> an empty file, as it finds no base class.
>
> so the subclassing method should also check, if the *.h file is
> newer as a corresponding *.ui file, and if *. does not exist or is
> older as a *.ui file, it should run uic (i guess it is the right
> program...) to create the .h file.
>
> you can check if this is really the error in your case. open a
> shell window and cd to the directory, where your centralviewbase.ui
> file is. then execute uic centralviewbase.ui
> this should create the .h file. now try to create another subclass
> from the centralviewbase in kdevelop. if it works this time, we
> know, that this is the error, if not, we know there is something
> else wrong.
>
> please tell us if that was the problem.
>
> Holger
>

Well, that's not the issue. The .h file was there already. Anyway, 
I've deleted it and generated manually with uic. The same result. The 
.h and .cpp generated for my class are empty (they only have that 
default comment at the beginning). 

Can you please verify if you can reproduce this? If yes, maybe I 
should open a bug report.

-- 
Stelian Iancu
Linux registered user 287835

I don't remember it, but I have it written down.


-
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