moving.h

来自「QT方面的开发」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef MOVING_H#define MOVING_H#include <QMainWindow>#include <QApplication>#include <QStack>#include <QQueue>class QLabel;class QVBoxLayout;//start/**   A demo of how widgets can move from one layout to another,   and also of how layouts can cause the containing widgets to stretch   to accomodate new elements.   */class MovingApp : public QApplication {    Q_OBJECTpublic:    MovingApp(int argc, char* argv[]);public slots:    void moveLeft();    void moveRight();    void newLeft();    void newRight();private:    QString nextLabel();    QMainWindow m_MainWindow;    QQueue<QLabel*> m_LeftQueue, m_RightQueue;    QVBoxLayout *m_LeftLayout, *m_RightLayout;    int m_Count;};//end#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?