#ifndef TEXT_H
#define TEXT_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QPushButton>
#include <QtGui/QTextEdit>
#include <QtGui/Qobject>
{
Q_Object
public:
{
Dialog
->setObjectName
(QString::fromUtf8("Dialog"));
Dialog
->resize
(QSize(550,
458).
expandedTo(Dialog
->minimumSizeHint
()));
exit
->setObjectName
(QString::fromUtf8("exit"));
exit
->setGeometry
(QRect(190,
340,
131,
36));
text2
->setObjectName
(QString::fromUtf8("text2"));
text2
->setGeometry
(QRect(380,
50,
104,
64));
enter
->setObjectName
(QString::fromUtf8("enter"));
enter
->setGeometry
(QRect(220,
70,
111,
36));
text1
->setObjectName
(QString::fromUtf8("text1"));
text1
->setGeometry
(QRect(70,
50,
104,
64));
retranslateUi(Dialog);
QObject::connect(enter,
SIGNAL(clicked
()),Dialog,
SLOT(update
()));
QObject::connect(exit,
SIGNAL(clicked
()), Dialog,
SLOT(reject
()));
} // setupUi
void retranslateUi
(QDialog *Dialog
) {
Q_UNUSED(Dialog);
} // retranslateUi
void update()
{
text2->setPlainText(text1->toPlainText());
}
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
#endif // TEXT_H
#ifndef TEXT_H
#define TEXT_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QPushButton>
#include <QtGui/QTextEdit>
#include <QtGui/Qobject>
class Ui_Dialog:public QObject
{
Q_Object
public:
QPushButton *exit;
QTextEdit *text2;
QPushButton *enter;
QTextEdit *text1;
void setupUi(QDialog *Dialog)
{
Dialog->setObjectName(QString::fromUtf8("Dialog"));
Dialog->resize(QSize(550, 458).expandedTo(Dialog->minimumSizeHint()));
exit = new QPushButton(Dialog);
exit->setObjectName(QString::fromUtf8("exit"));
exit->setGeometry(QRect(190, 340, 131, 36));
text2 = new QTextEdit(Dialog);
text2->setObjectName(QString::fromUtf8("text2"));
text2->setGeometry(QRect(380, 50, 104, 64));
enter = new QPushButton(Dialog);
enter->setObjectName(QString::fromUtf8("enter"));
enter->setGeometry(QRect(220, 70, 111, 36));
text1 = new QTextEdit(Dialog);
text1->setObjectName(QString::fromUtf8("text1"));
text1->setGeometry(QRect(70, 50, 104, 64));
retranslateUi(Dialog);
QObject::connect(enter, SIGNAL(clicked()),Dialog, SLOT(update()));
QObject::connect(exit, SIGNAL(clicked()), Dialog, SLOT(reject()));
QMetaObject::connectSlotsByName(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, QApplication::UnicodeUTF8));
exit->setText(QApplication::translate("Dialog", "Exit", 0, QApplication::UnicodeUTF8));
enter->setText(QApplication::translate("Dialog", "enter", 0, QApplication::UnicodeUTF8));
Q_UNUSED(Dialog);
} // retranslateUi
void update()
{
text2->setPlainText(text1->toPlainText());
}
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
#endif // TEXT_H
To copy to clipboard, switch view to plain text mode
pls help me out
Bookmarks