opencv_mv/QMainPro/QMacVisual/basemainwindow.h

31 lines
596 B
C
Raw Permalink Normal View History

2023-05-22 09:27:46 +00:00
#pragma once
#pragma execution_character_set("utf-8")
#include <QtWidgets/QWidget>
#include <QDialog>
#include "mytitlebar.h"
//Ҫ<>̳<EFBFBD>QMainWindow<6F><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>QWidget<65><74>Ϊ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;
};