RosettaCodeData/Task/Simple-windowed-application/C++/simple-windowed-application-1.cpp

22 lines
369 B
C++
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
#ifndef CLICKCOUNTER_H
#define CLICKCOUNTER_H
#include <QWidget>
class QLabel ;
class QPushButton ;
class QVBoxLayout ;
class Counter : public QWidget {
Q_OBJECT
public :
Counter( QWidget * parent = 0 ) ;
private :
int number ;
QLabel *countLabel ;
QPushButton *clicker ;
QVBoxLayout *myLayout ;
private slots :
void countClicks( ) ;
} ;
#endif