⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moving.h

📁 压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>>所有源码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -