[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: modifying Qt Designer generated code
From:       Thomas Kadauke <tkadauke () gmx ! de>
Date:       2006-07-19 8:43:47
Message-ID: 200607191043.47555.tkadauke () gmx ! de
[Download RAW message or body]

Hi Nasser,

Am Wednesday 19 July 2006 06:43 schrieb Nasser:
> i guess my question can be generalised as follows:... if i ever want
> to develop the GUI part of an application using Qt Designer, is it
> possible to continue the application's development using KDevelop
> after using "uic" to compile the Qt Designer file into cpp?

You can do it like follows: Name your .ui-file formbase.ui and add it directly 
to your project, i.e. don't call uic yourself. Make sure, that the custom 
slots in your formbase.ui are declared virtual. Then, in your Automake 
Manager [1], right-click the formbase.ui and select "Subclassing Wizard". 
Call the subclass "Form". The wizard should offer you to reimplement the 
virtual slots. In the Form class, add your code to the slots. You can also 
add new methods in the Form class.

The problem is that the output of uic is automatically generated and should 
therefore not be touched, because any changes to the files will be lost when 
you run uic again.

Hope that helps,
--Thomas

[1] Assuming you use Automake. There probably is something similar in other 
buildsystem managers.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic