messagebox.h

来自「linux窗口程序设计一书的第一章代码,希望对大家有用」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef MESSAGEBOX_H
#define MESSAGEBOX_H

#include <QDialog>

class QLabel;

class MessageBox : public QDialog
{
    Q_OBJECT
public:
    MessageBox(QWidget *parent=0);

public slots:
    void slotQuestion();
    void slotInformation();
    void slotWarning();
    void slotCritical();
    void slotAbout();
    void slotAboutQt();
    void slotCustom();
    
private:
    QLabel *label;
};

#endif  // MESSAGEBOX_H

⌨️ 快捷键说明

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