login.h
#include <QApplication>
#include <QtGui>
#include <QDialog>
#ifndef LOGIN_H
#define LOGIN_H
class Login{
public:
Login();
void button(QWidget *widget);
...
protected slots:
void enter();
};
#endif // LOGIN_H
login.cpp
#include "login.h"
...
void Login::button(QWidget *widget){
QPushButton *enter_button = new QPushButton("&Enter",widget);
QObject::connect(enter_button, SIGNAL(clicked()),
this, SLOT(enter() ) );
login_button -> move(400, 500);
}
void Login::enter(){
}