[Qt-interest] How to add a dialog to a project?

Piotr Dobrogost pd at 2009.gmane.dobrogost.pl
Sat May 23 12:09:51 CEST 2009


Andreas Pakulat wrote:

> I don't use QtCreator myself, but the header you're talking about
> (ui_foo.h if you have a foo.ui) is auto-generated when you build the
> project. So you can just put the

I'm not talking about ui_foo.h but about foo.h.
For example after creating a new project there are

mainwindow.ui
ui_mainwindow.h

AND

mainwindow.h

which looks like this

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H


I think this kind of a header file should be generated too.


-- 
Piotr Dobrogost
*** curlpp.org - c++ wrapper for libcurl ***




More information about the Qt-interest-old mailing list