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

List:       kde-devel
Subject:    Re: Qt Designer and sub-classing
From:       Robin Atwood <robin.atwood () attglobal ! net>
Date:       2008-02-18 12:26:51
Message-ID: 200802181926.52023.robin.atwood () attglobal ! net
[Download RAW message or body]

On Monday 18 Feb 2008, Andreas Pakulat wrote:

> > > Yes, there is, I have already tried it. I can create a trivial custom
> > > widget and import the header,  but when I try and paint it on a form it
> > > disappears!
>
> I just tested it with the attached files (just drop them in a dir, run
> qmake -project; qmake; make) and it works fine for me.

Thanks very much for all your help, it is very good of you! I used your header 
file to make a new custom widget and then was able to drag it onto a form. I 
then changed your header file to mine, keeping the default 
name "MyCustomWidget" and then I was able to add my widget to a form. I then 
changed the name to something more meaningful and it stopped working again: 
when I dragged the widget onto a form, it refused to "stick". After messing 
around with with different headers and names, I finally got a custom widget 
with a sensible name and my code. I also got several segfaults in KDevelop 
and my opinion is that the whole process is very flaky but I am up and 
running now, so never mind.  

Thanks again for your assistance.
-Robin
-- 












 
>> 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