Qt-interest Archive, May 2008
How to generate source code
Message 1 in thread
Hi all,
I am new to Qt designer. I generated ui using Qt3 designer and was able to generate both header and source files. But, when I started using Qt4 designer, I was able generate only header.
Can anyone help me in generating source code from ui file. Please provide me some links for the same.
Thanks in advance,
Kiran.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Message 2 in thread
On Friday 09 May 2008, Freelancer Kiran wrote:
> Hi all,
>
> I am new to Qt designer. I generated ui using Qt3 designer and was able to
> generate both header and source files. But, when I started using Qt4
> designer, I was able generate only header.
>
> Can anyone help me in generating source code from ui file. Please provide
> me some links for the same.
Qt4 does not create .cpp files from .ui files, only a .h file. Check out your
Designer documentation, especially "Using a component" or something similar.
--
[ signature omitted ]
Message 3 in thread
Thanks for the reply Jan.
Then can you tell me how to customize the ui file for our additions like adding menu to the generated ui file etc?
--
[ signature omitted ]
Message 4 in thread
You really need to read the QT 4 docs.. Espicially the QT3 to 4
transition docs, and the designer/UIC docs
Scott
From: Freelancer Kiran [mailto:freelancer.kiran@xxxxxxxxx]
Sent: Friday, May 09, 2008 2:39 AM
To: Jan Ekholm; qt-interest@xxxxxxxxxxxxx
Subject: Re: How to generate source code
Thanks for the reply Jan.
Then can you tell me how to customize the ui file for our additions like
adding menu to the generated ui file etc?
--
[ signature omitted ]
Message 5 in thread
On 9 maj 2008, at 11.39, Freelancer Kiran wrote:
> Thanks for the reply Jan.
>
> Then can you tell me how to customize the ui file for our additions
> like adding menu to the generated ui file etc?
>
You derive a class from BOTH a QWidget subclass, and the class
created from your form.
> --
> Kiran.
>
> ----- Original Message ----
> From: Jan Ekholm <jan.ekholm@xxxxxxxxxxxx>
> To: qt-interest@xxxxxxxxxxxxx
> Sent: Friday, May 9, 2008 1:04:21 PM
> Subject: Re: How to generate source code
>
> On Friday 09 May 2008, Freelancer Kiran wrote:
> > Hi all,
> >
> > I am new to Qt designer. I generated ui using Qt3 designer and
> was able to
> > generate both header and source files. But, when I started using Qt4
> > designer, I was able generate only header.
> >
> > Can anyone help me in generating source code from ui file. Please
> provide
> > me some links for the same.
>
> Qt4 does not create .cpp files from .ui files, only a .h file. Check
> out your
> Designer documentation, especially "Using a component" or something
> similar.
>
> --
> Jan Ekholm
> jan.ekholm@xxxxxxxxxxxx
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.
> Try it now.
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
tommy.nordgren@xxxxxxxxx
--
[ signature omitted ]
Message 6 in thread
your questions should be answered in the docs:
<http://doc.trolltech.com/4.4/porting4-overview.html#qt-designer>
Cheers,
Peter
> -----Ursprüngliche Nachricht-----
> Von: Freelancer Kiran [mailto:freelancer.kiran@xxxxxxxxx]
> Gesendet: Freitag, 9. Mai 2008 11:39
> An: Jan Ekholm; qt-interest@xxxxxxxxxxxxx
> Betreff: Re: How to generate source code
>
> Thanks for the reply Jan.
>
> Then can you tell me how to customize the ui file for our
> additions like adding menu to the generated ui file etc?
>
> --
> Kiran.
--
[ signature omitted ]