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

List:       kde-devel
Subject:    Re: modifying Qt Designer generated code
From:       Nasser <parallel.au () gmail ! com>
Date:       2006-07-20 3:32:00
Message-ID: d25049ac0607192032q6fc96ab1r618cc6d6555847c () mail ! gmail ! com
[Download RAW message or body]

in the end, what i did was start a new project from scratch in
kdevelop... i then created new classes... and inside these classes i
copied the output from uic ...

it compiled and i could make the changes i need... is this a bad thing
to do? ... the thing is, i don't need to use qt designer now that i
have the interface done..

i think the way you suggested is better Thomas, but i could not get
that to work..


On 7/19/06, Thomas Kadauke <tkadauke@gmx.de> wrote:
> 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