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

List:       kde-devel
Subject:    Re: modifying Qt Designer generated code
From:       "=?UTF-8?Q?Ahmed_A=C3=AFt_Mouss?=" <enderu666 () gmail ! com>
Date:       2006-07-20 10:40:13
Message-ID: 6a72165a0607200340ka74cc45k157f20c7e0f8dc89 () mail ! gmail ! com
[Download RAW message or body]

On 7/20/06, Nasser <parallel.au@gmail.com> wrote:
> 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..

Basically what you have to do is subclass the UI class created by
Designer and put any additionnal functionality in the subclass.
Say you create baseform.ui in Designer, then uic will generate
baseform.h and baseform.cpp. What you should do is create a class
named Form that inherits BaseForm, and add you functionnality to Form.
It's explained in the Qt docs.

-- 
"So, when your back's up against the wall... and there's no
tomorrow... just take one day at a time and remember, the bigger they
are... et cetera..." -- O'Neill
 
>> 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