mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
39 lines
1019 B
C
39 lines
1019 B
C
#ifndef QQTWINDOWATTRIBUTE_H
|
|
#define QQTWINDOWATTRIBUTE_H
|
|
|
|
#include <QWidget>
|
|
|
|
//#include <qqt-local.h>
|
|
#define QQTSHARED_EXPORT
|
|
|
|
//windowflag
|
|
|
|
//frameless
|
|
void QQTSHARED_EXPORT setFrameless ( QWidget* widget, bool open = true );
|
|
|
|
//主、子窗口
|
|
void QQTSHARED_EXPORT setMainWindow ( QWidget* widget, bool open = true );
|
|
|
|
//full screen (normal screen, +size)
|
|
void QQTSHARED_EXPORT setFullScreen ( QWidget* widget, bool open = true, QRect normalGeometry = QRect ( 0, 0, 800, 600 ) );
|
|
|
|
//stay on bottom
|
|
void QQTSHARED_EXPORT setStayOnBottom ( QWidget* widget, bool open = true );
|
|
|
|
//stay on top
|
|
void QQTSHARED_EXPORT setStayOnTop ( QWidget* widget, bool open = true );
|
|
|
|
//attribute
|
|
|
|
//WA_TranslucentBackground
|
|
void QQTSHARED_EXPORT setTranslucentBackground ( QWidget* widget, bool open = true );
|
|
|
|
//WA_TransparentForMouseEvents
|
|
void QQTSHARED_EXPORT setTransparentForMouseEvents ( QWidget* widget, bool open = true );
|
|
|
|
//子窗体填充主窗体
|
|
|
|
|
|
|
|
#endif // QQTWINDOWATTRIBUTE_H
|