-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol.cpp
More file actions
56 lines (41 loc) · 1.07 KB
/
control.cpp
File metadata and controls
56 lines (41 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <QDebug>
#include "control.h"
#include "telaconfiggeral/telaconfiggeral.h"
#include "QFuture"
#include "QtConcurrent"
#include "QKeyEvent"
Control::Control( QObject* parent ) :
QObject( parent ) {}
void Control::chamarSignal(){
TelaConfigGeral telaConfig;
Control a , b;
Tododto aluk1 , aluk2;
QObject::connect( &a , &Control::nomeChanged , this , &Control::slotTeste );
// QObject::connect( &aluk1, &Tododto::nomeChanged , &aluk2 , &Tododto::setNome );
QObject::connect( &a , &Control::nadaChanged , this , &Control::apenasImprime );
aluk1.setNome("s");
a.setNome("carlos");
b.setNome("carlinhos");
}
void Control::imprimirNumeros( int var ){
qDebug()<<"carlos"<< var;
}
QString Control::nome() const
{
return _nome;
}
void Control::setNome(const QString &nome){
if( !nome.isEmpty() ){
_nome = nome;
emit nadaChanged();
emit nomeChanged( nome );
}
}
void Control::slotTeste(QString calros){
qDebug()<<calros;
}
void Control::apenasImprime(){
for (int i = 0 ; i < 10;i++) {
qCritical()<<"Numeros"<<i;
}
}