Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, July 2007
qmake 2.01a problems


Message 1 in thread

I'm writing a small application using Qt 4.2 and at the moment I'm writing
it's UI with the help of Qt Designer. There have been a couple of problems
along the way but one that I don't get is how qmake translates the .ui file
that I created. It's a very simple main window which was created from
KDevelop's "Qt 4.2 Main Window" template.

The problem is that the ui_MainWindow.h file that qmake produces doesn't
seem right. Here's a sample

<code>
#include <QtGui/QApplication>
<snip />

class Ui_MyMainWindow
{
public:
    QAction *actionAs_client;
    <snip />

};

namespace Ui {
    class MyMainWindow: public Ui_MyMainWindow {};
} // namespace Ui
</code>


Isn't Ui_MyMainWindow supposed to be a subclass of some Qt class like
QMainWindow? If so, how come qmake doesn't define a parent class? Is it a
bug with qmake (it's 2.01a), a bug with QtDesigner or am I missing
something?


Rui Maciel

--
 [ signature omitted ] 

Message 2 in thread

On 07.07.07 09:56:34, Rui Maciel wrote:
> Isn't Ui_MyMainWindow supposed to be a subclass of some Qt class like
> QMainWindow?

No, see the designer manual of Qt4, what you have in mind is qt3
behaviour.

Andreas

-- 
 [ signature omitted ]