ok, this its:
#ifndef LOG_H
#define LOG_H
#include <QMainWindow>
#include <QWidget>
#include "mainwindow.h"
#include <QSqlQuery>
#include <QKeyEvent>
namespace Ui {
class log;
}
{
Q_OBJECT
public:
~log();
private:
Ui::log *ui;
MainWindow m;
private slots:
// void funcion::keyPressEvent( QKeyEvent* );
void on_pushButton_clicked();
};
#endif // LOG_H
#ifndef LOG_H
#define LOG_H
#include <QMainWindow>
#include <QWidget>
#include "mainwindow.h"
#include <QSqlQuery>
#include <QKeyEvent>
namespace Ui {
class log;
}
class log : public QMainWindow
{
Q_OBJECT
public:
explicit log(QWidget *parent = 0);
QString cuenta;
~log();
private:
Ui::log *ui;
MainWindow m;
private slots:
// void funcion::keyPressEvent( QKeyEvent* );
void on_pushButton_clicked();
};
#endif // LOG_H
To copy to clipboard, switch view to plain text mode
then, i call the Qstring cuenta so:
this code is located in mainwindow.cpp
log login;
showme= login.cuenta;
log login;
QString showme;
showme= login.cuenta;
To copy to clipboard, switch view to plain text mode
the compiler does not show other error
Bookmarks