界面设计开发
创建项目如下图所示:
Drawer类继承自QToolBox类;
编写drawer.h文件
#ifndef DRAWER_H
#define DRAWER_H
#include<QToolBox>
#include<QToolButton>
class Drawer : public QToolBox
{
Q_OBJECT
public:
Drawer(QWidget*parent=0, Qt::WindowFlags f = 0);
private:
QToolButton *toolBtn1;
QToolButton *toolBtn2;
QToolButton *toolBtn3;
QToolButton