rendered paste body================== main.cpp ==================
#include <QtGui/QtGui>
#include "ui_principal.h"
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
app.setQuitOnLastWindowClosed(true);
QMainWindow *form = new QMainWindow;
Ui::MainWindow ui;
ui.setupUi(form);
form->showFullScreen();
return app.exec();
}
================== ui_principal.h ==================
/********************************************************************************
** Form generated from reading ui file 'principal.ui'
**
** Created: Tue Mar 20 11:13:12 2007
** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef UI_PRINCIPAL_H
#define UI_PRINCIPAL_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QFontComboBox>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QLabel>
#include <QtGui/QMainWindow>
#include <QtGui/QMenuBar>
#include <QtGui/QPushButton>
#include <QtGui/QSpinBox>
#include <QtGui/QStatusBar>
#include <QtGui/QTextEdit>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
class Ui_MainWindow
{
public:
QWidget *centralwidget;
QHBoxLayout *hboxLayout;
QHBoxLayout *hboxLayout1;
QVBoxLayout *vboxLayout;
QGroupBox *groupBox;
QHBoxLayout *hboxLayout2;
QVBoxLayout *vboxLayout1;
QHBoxLayout *hboxLayout3;
QLabel *label;
QFontComboBox *fontComboBox;
QHBoxLayout *hboxLayout4;
QLabel *label_2;
QSpinBox *spinBox;
QHBoxLayout *hboxLayout5;
QLabel *label_5;
QComboBox *comboBox;
QHBoxLayout *hboxLayout6;
QLabel *label_3;
QPushButton *pushButton_2;
QHBoxLayout *hboxLayout7;
QLabel *label_4;
QPushButton *pushButton_3;
QGroupBox *groupBox_2;
QHBoxLayout *hboxLayout8;
QVBoxLayout *vboxLayout2;
QHBoxLayout *hboxLayout9;
QLabel *label_6;
QSpinBox *spinBox_2;
QLabel *label_7;
QCheckBox *checkBox;
QPushButton *pushButton;
QTextEdit *textEdit;
QMenuBar *menubar;
QStatusBar *statusbar;
void setupUi(QMainWindow *MainWindow)
{
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
hboxLayout = new QHBoxLayout(centralwidget);
hboxLayout->setSpacing(6);
hboxLayout->setMargin(9);
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setSpacing(6);
hboxLayout1->setMargin(0);
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
vboxLayout = new QVBoxLayout();
vboxLayout->setSpacing(6);
vboxLayout->setMargin(0);
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
groupBox = new QGroupBox(centralwidget);
groupBox->setObjectName(QString::fromUtf8("groupBox"));
hboxLayout2 = new QHBoxLayout(groupBox);
hboxLayout2->setSpacing(6);
hboxLayout2->setMargin(9);
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
vboxLayout1 = new QVBoxLayout();
vboxLayout1->setSpacing(6);
vboxLayout1->setMargin(0);
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
hboxLayout3 = new QHBoxLayout();
hboxLayout3->setSpacing(6);
hboxLayout3->setMargin(0);
hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
label = new QLabel(groupBox);
label->setObjectName(QString::fromUtf8("label"));
hboxLayout3->addWidget(label);
fontComboBox = new QFontComboBox(groupBox);
fontComboBox->setObjectName(QString::fromUtf8("fontComboBox"));
hboxLayout3->addWidget(fontComboBox);
vboxLayout1->addLayout(hboxLayout3);
hboxLayout4 = new QHBoxLayout();
hboxLayout4->setSpacing(0);
hboxLayout4->setMargin(0);
hboxLayout4->setObjectName(QString::fromUtf8("hboxLayout4"));
label_2 = new QLabel(groupBox);
label_2->setObjectName(QString::fromUtf8("label_2"));
hboxLayout4->addWidget(label_2);
spinBox = new QSpinBox(groupBox);
spinBox->setObjectName(QString::fromUtf8("spinBox"));
spinBox->setMaximum(120);
spinBox->setMinimum(8);
hboxLayout4->addWidget(spinBox);
vboxLayout1->addLayout(hboxLayout4);
hboxLayout5 = new QHBoxLayout();
hboxLayout5->setSpacing(6);
hboxLayout5->setMargin(0);
hboxLayout5->setObjectName(QString::fromUtf8("hboxLayout5"));
label_5 = new QLabel(groupBox);
label_5->setObjectName(QString::fromUtf8("label_5"));
hboxLayout5->addWidget(label_5);
comboBox = new QComboBox(groupBox);
comboBox->setObjectName(QString::fromUtf8("comboBox"));
hboxLayout5->addWidget(comboBox);
vboxLayout1->addLayout(hboxLayout5);
hboxLayout6 = new QHBoxLayout();
hboxLayout6->setSpacing(6);
hboxLayout6->setMargin(0);
hboxLayout6->setObjectName(QString::fromUtf8("hboxLayout6"));
label_3 = new QLabel(groupBox);
label_3->setObjectName(QString::fromUtf8("label_3"));
hboxLayout6->addWidget(label_3);
pushButton_2 = new QPushButton(groupBox);
pushButton_2->setObjectName(QString::fromUtf8("pushButton_2"));
hboxLayout6->addWidget(pushButton_2);
vboxLayout1->addLayout(hboxLayout6);
hboxLayout7 = new QHBoxLayout();
hboxLayout7->setSpacing(6);
hboxLayout7->setMargin(0);
hboxLayout7->setObjectName(QString::fromUtf8("hboxLayout7"));
label_4 = new QLabel(groupBox);
label_4->setObjectName(QString::fromUtf8("label_4"));
hboxLayout7->addWidget(label_4);
pushButton_3 = new QPushButton(groupBox);
pushButton_3->setObjectName(QString::fromUtf8("pushButton_3"));
hboxLayout7->addWidget(pushButton_3);
vboxLayout1->addLayout(hboxLayout7);
hboxLayout2->addLayout(vboxLayout1);
vboxLayout->addWidget(groupBox);
groupBox_2 = new QGroupBox(centralwidget);
groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
hboxLayout8 = new QHBoxLayout(groupBox_2);
hboxLayout8->setSpacing(6);
hboxLayout8->setMargin(9);
hboxLayout8->setObjectName(QString::fromUtf8("hboxLayout8"));
vboxLayout2 = new QVBoxLayout();
vboxLayout2->setSpacing(6);
vboxLayout2->setMargin(0);
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
hboxLayout9 = new QHBoxLayout();
hboxLayout9->setSpacing(6);
hboxLayout9->setMargin(0);
hboxLayout9->setObjectName(QString::fromUtf8("hboxLayout9"));
label_6 = new QLabel(groupBox_2);
label_6->setObjectName(QString::fromUtf8("label_6"));
hboxLayout9->addWidget(label_6);
spinBox_2 = new QSpinBox(groupBox_2);
spinBox_2->setObjectName(QString::fromUtf8("spinBox_2"));
spinBox_2->setMaximum(500);
hboxLayout9->addWidget(spinBox_2);
label_7 = new QLabel(groupBox_2);
label_7->setObjectName(QString::fromUtf8("label_7"));
hboxLayout9->addWidget(label_7);
vboxLayout2->addLayout(hboxLayout9);
checkBox = new QCheckBox(groupBox_2);
checkBox->setObjectName(QString::fromUtf8("checkBox"));
checkBox->setChecked(true);
vboxLayout2->addWidget(checkBox);
hboxLayout8->addLayout(vboxLayout2);
vboxLayout->addWidget(groupBox_2);
pushButton = new QPushButton(centralwidget);
pushButton->setObjectName(QString::fromUtf8("pushButton"));
vboxLayout->addWidget(pushButton);
hboxLayout1->addLayout(vboxLayout);
textEdit = new QTextEdit(centralwidget);
textEdit->setObjectName(QString::fromUtf8("textEdit"));
hboxLayout1->addWidget(textEdit);
hboxLayout->addLayout(hboxLayout1);
MainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(MainWindow);
menubar->setObjectName(QString::fromUtf8("menubar"));
menubar->setGeometry(QRect(0, 0, 800, 28));
MainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
QSize size(800, 600);
size = size.expandedTo(MainWindow->minimumSizeHint());
MainWindow->resize(size);
QObject::connect(spinBox, SIGNAL(valueChanged(int)), textEdit, SLOT(setFontWeight(int)));
QObject::connect(fontComboBox, SIGNAL(currentFontChanged(QFont)), textEdit, SLOT(setCurrentFont(QFont)));
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "Retrovisa", 0, QApplication::UnicodeUTF8));
groupBox->setTitle(QApplication::translate("MainWindow", "Opc\303\265es de Fonte", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("MainWindow", "Tipo", 0, QApplication::UnicodeUTF8));
label_2->setText(QApplication::translate("MainWindow", "Tamanho", 0, QApplication::UnicodeUTF8));
label_5->setText(QApplication::translate("MainWindow", "Alinhamento", 0, QApplication::UnicodeUTF8));
comboBox->clear();
comboBox->addItem(QApplication::translate("MainWindow", "Esquerda", 0, QApplication::UnicodeUTF8));
comboBox->addItem(QApplication::translate("MainWindow", "Centro", 0, QApplication::UnicodeUTF8));
comboBox->addItem(QApplication::translate("MainWindow", "Direita", 0, QApplication::UnicodeUTF8));
comboBox->addItem(QApplication::translate("MainWindow", "Justificado", 0, QApplication::UnicodeUTF8));
label_3->setText(QApplication::translate("MainWindow", "Cor de Frente", 0, QApplication::UnicodeUTF8));
pushButton_2->setText(QApplication::translate("MainWindow", "Escolher cor...", 0, QApplication::UnicodeUTF8));
label_4->setText(QApplication::translate("MainWindow", "Cor de Fundo", 0, QApplication::UnicodeUTF8));
pushButton_3->setText(QApplication::translate("MainWindow", "Escolher cor...", 0, QApplication::UnicodeUTF8));
groupBox_2->setTitle(QApplication::translate("MainWindow", "Op\303\247\303\265es de Apresenta\303\247\303\243o", 0, QApplication::UnicodeUTF8));
label_6->setText(QApplication::translate("MainWindow", "Aguardar", 0, QApplication::UnicodeUTF8));
label_7->setText(QApplication::translate("MainWindow", "segundos.", 0, QApplication::UnicodeUTF8));
checkBox->setText(QApplication::translate("MainWindow", "Inverter o texto", 0, QApplication::UnicodeUTF8));
pushButton->setText(QApplication::translate("MainWindow", "Iniciar Apresenta\303\247\303\243o!", 0, QApplication::UnicodeUTF8));
Q_UNUSED(MainWindow);
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
#endif // UI_PRINCIPAL_H