telainicial.cpp:
#include <QtGui>
#include "telainicial.h"
#include "simples.h"
#include "prog.h"
#include "trans.h"
#include "config.h"
telainicial
::telainicial(QWidget *parent
) :
{
setupUi(this);
connect(lentesimples, SIGNAL(clicked()), this, SLOT(telasimples()));
connect(lenteprog, SIGNAL(clicked()), this, SLOT(telaprog()));
connect(transmissao, SIGNAL(clicked()), this, SLOT(telatrans()));
connect(configuracoes, SIGNAL(clicked()), this, SLOT(telaconfig()));
}
void telainicial::telasimples(){
simples dlg(this);
dlg.exec();
}
void telainicial::telaprog(){
prog dlg(this);
dlg.exec();
}
void telainicial::telatrans(){
trans dlg(this);
dlg.exec();
}
void telainicial::telaconfig(){
config dlg(this);
dlg.exec();
};
#include <QtGui>
#include "telainicial.h"
#include "simples.h"
#include "prog.h"
#include "trans.h"
#include "config.h"
telainicial::telainicial(QWidget *parent) :
QMainWindow(parent)
{
setupUi(this);
connect(lentesimples, SIGNAL(clicked()), this, SLOT(telasimples()));
connect(lenteprog, SIGNAL(clicked()), this, SLOT(telaprog()));
connect(transmissao, SIGNAL(clicked()), this, SLOT(telatrans()));
connect(configuracoes, SIGNAL(clicked()), this, SLOT(telaconfig()));
}
void telainicial::telasimples(){
simples dlg(this);
dlg.exec();
}
void telainicial::telaprog(){
prog dlg(this);
dlg.exec();
}
void telainicial::telatrans(){
trans dlg(this);
dlg.exec();
}
void telainicial::telaconfig(){
config dlg(this);
dlg.exec();
};
To copy to clipboard, switch view to plain text mode
telainicial.h
#ifndef TELAINICIAL_H
#define TELAINICIAL_H
#include <QMainWindow>
#include "ui_telainicial.h"
class telainicial
: public QMainWindow,
public Ui
::telainicial { Q_OBJECT
public:
private slots:
void telasimples();
void telaconfig();
void telaprog();
void telatrans();
};
#endif // TELAINICIAL_H
#ifndef TELAINICIAL_H
#define TELAINICIAL_H
#include <QMainWindow>
#include "ui_telainicial.h"
class telainicial : public QMainWindow, public Ui::telainicial {
Q_OBJECT
public:
telainicial(QWidget *parent = 0);
private slots:
void telasimples();
void telaconfig();
void telaprog();
void telatrans();
};
#endif // TELAINICIAL_H
To copy to clipboard, switch view to plain text mode
telainicial.pro
# -------------------------------------------------
# Project created by QtCreator 2010-05-14T10:13:43
# -------------------------------------------------
QT += opengl
TARGET = TelaPrincipal
TEMPLATE = app
SOURCES += main.cpp \
telainicial.cpp \
../Config/config.cpp \
../LenteSimples/simples.cpp \
../Progressiva/prog.cpp \
../Transmissao/trans.cpp
HEADERS += telainicial.h \
../Config/config.h \
../LenteSimples/simples.h \
../Progressiva/prog.h \
../Transmissao/trans.h
FORMS += telainicial.ui
OTHER_FILES +=
# -------------------------------------------------
# Project created by QtCreator 2010-05-14T10:13:43
# -------------------------------------------------
QT += opengl
TARGET = TelaPrincipal
TEMPLATE = app
SOURCES += main.cpp \
telainicial.cpp \
../Config/config.cpp \
../LenteSimples/simples.cpp \
../Progressiva/prog.cpp \
../Transmissao/trans.cpp
HEADERS += telainicial.h \
../Config/config.h \
../LenteSimples/simples.h \
../Progressiva/prog.h \
../Transmissao/trans.h
FORMS += telainicial.ui
OTHER_FILES +=
To copy to clipboard, switch view to plain text mode
All dialog's folders are in the same folder, including the mainwindow's folder. I already have indexed the .h and .cpp files thounsand times but it just doesn't work. Can you try in your pc? I can send it by email...
Bookmarks