Hm I still have some problems... I didn't find anything via google, so I looked in the QT-Examples. I didn't find anything usefull there, too. Here's what i've got right now, I think a lot is wrong but I don't see the error(s)...
------------------------- mainwindow.h ------------------
class mainwindow
: public QMainWindow,
private Ui
::MainWindow { Q_OBJECT
public:
mainwindow();
userEdit *userEditLineEdit;
public slots:
void sendString();
void clearLog();
void manageDatabase();
};
{
public:
userEdit();
};
------------------------- mainwindow.cpp ------------------
mainwindow::mainwindow() {
databaseConnect();
userEdit *userEditLineEdit = new userEdit;
setupUi(this);
}
userEdit::userEdit() {
setObjectName
(QString::fromUtf8("userEntry"));
setGeometry
(QRect(1,
448,
571,
27));
}
------------------------- mainwindow.h ------------------
class mainwindow : public QMainWindow, private Ui::MainWindow {
Q_OBJECT
public:
mainwindow();
userEdit *userEditLineEdit;
public slots:
void sendString();
void clearLog();
void manageDatabase();
};
class userEdit : public QLineEdit
{
public:
userEdit();
void setText(const QString &str) {QLineEdit::setText("I_was_here_"+str);}
};
------------------------- mainwindow.cpp ------------------
mainwindow::mainwindow() {
databaseConnect();
userEdit *userEditLineEdit = new userEdit;
setupUi(this);
}
userEdit::userEdit() {
setObjectName(QString::fromUtf8("userEntry"));
setGeometry(QRect(1, 448, 571, 27));
}
To copy to clipboard, switch view to plain text mode
Thanks in advance
Jonathan
Bookmarks