[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Problem with QT designer Qt3 -> Qt4
From: Keith Rusler <xzekecomax () gmail ! com>
Date: 2009-06-23 12:19:44
Message-ID: 200906230719.44363.xzekecomax () gmail ! com
[Download RAW message or body]
Hiya,
You need to inherit from QDialog and also inherit from Ui::ReniceUI. Or you
can just use it as a class member in private. Then call ui.setupUi(this); if
you did the member one or setupUi(this); if you did it from inheritance.
Keith
On Tuesday 23 June 2009 07:14:57 am Robin Atwood wrote:
> I have just started converting the KDE3 apps I wrote to KDE4, the sudden
> impetus being the excellent am2cmake utility I just found: very useful,
> good work! Now brace yourselves for lots of dumb questions.
>
> I have a little dialog I created with Qt Designer and opened the old ui
> file with the new designer and saved it. When I ran the make I get an
> error:
>
> error: ‘class Renice' has no member named ‘exec'
>
> Looking at the new ui file it starts:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ui version="4.0">
> <class>ReniceUI</class>
> <widget class="QDialog" name="ReniceUI">
>
> which I expected but looking at Ui_ReniceUI.h I see:
>
> class Ui_ReniceUI
> {
> public:
> ......
> void setupUi(QDialog *ReniceUI)
> {
>
> This seems to be quite different from QT3 generated code but shouldn't
> Ui_ReniceUI at least be inheriting QDialog?
>
> TIA
> -Robin
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
>> 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