opencv_mv/QMainPro/QMacVisual/basemainwindow.h

31 lines
596 B
C++
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#pragma execution_character_set("utf-8")
#include <QtWidgets/QWidget>
#include <QDialog>
#include "mytitlebar.h"
//Òª¼Ì³ÐQMainWindow£¬ÔòÐèÒª°ÑQWidget¸ÄΪQMainWindow
class BaseWindow : public QDialog
{
Q_OBJECT
public:
BaseWindow(QWidget*parent = 0);
~BaseWindow();
private:
void initTitleBar();
void paintEvent(QPaintEvent *event);
void loadStyleSheet(const QString &sheetName);
private slots:
void onButtonMinClicked();
void onButtonRestoreClicked();
void onButtonMaxClicked();
void onButtonCloseClicked();
protected:
MyTitleBar* m_titleBar = new MyTitleBar;
};