1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/testwindowattribute/qqtwindowattribute.h

39 lines
1019 B
C
Raw Normal View History

#ifndef QQTWINDOWATTRIBUTE_H
#define QQTWINDOWATTRIBUTE_H
#include <QWidget>
//#include <qqt-local.h>
#define QQTSHARED_EXPORT
2019-08-29 14:03:00 +08:00
//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 ) );
2019-08-29 14:03:00 +08:00
//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