hello.h
来自「linux下的Qt编程源程序」· C头文件 代码 · 共 33 行
H
33 行
#ifndef HELLO_H#define HELLO_H#include <qwidget.h>#include<qlayout.h>#include<qpushbutton.h>#include <qmenubar.h>#include <qlabel.h>class Hello : public QWidget{ Q_OBJECTpublic: Hello( const char *text, QWidget *parent=0, const char *name=0 ); QPushButton *sysName;signals: void clicked();protected: QVBoxLayout *optionsFormLayout; QHBoxLayout *chartTypeLayout; QHBoxLayout *fontLayout ; void mouseReleaseEvent( QMouseEvent * ); void paintEvent( QPaintEvent * );private slots: void animate();private: QString t; int b;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?