this is my header file:
#include <qmainwindow.h>
{
Q_OBJECT
public:
testWindow
( QWidget* parent
= 0,
const char* name
= 0, WFlags f
= WType_TopLevel
);
testWindow();
~testWindow();
protected:
protected slots:
void something();
private slots:
private:
};
#include <qmainwindow.h>
class QWorkspace;
class QTextEdit;
class testWindow : public QMainWindow
{
Q_OBJECT
public:
testWindow( QWidget* parent = 0, const char* name = 0, WFlags f = WType_TopLevel );
testWindow();
~testWindow();
protected:
QWorkspace *mdi;
protected slots:
void something();
private slots:
private:
};
To copy to clipboard, switch view to plain text mode
and this is my implementation file:
#include "testwindow.h"
// here are othe qt header files.
testWindow
::testWindow( QWidget* parent,
const char* name, WFlags f
){
//here comes my code
}
#include "testwindow.h"
// here are othe qt header files.
testWindow::testWindow( QWidget* parent, const char* name, WFlags f )
: QMainWindow( parent, name, f )
{
//here comes my code
}
To copy to clipboard, switch view to plain text mode
Bookmarks