修正大量demo

This commit is contained in:
feiyangqingyun
2021-03-08 09:04:48 +08:00
parent 2f5f9bd427
commit 23a32e6d32
32 changed files with 428 additions and 209 deletions

View File

@@ -205,6 +205,6 @@ void FramelessWidget::setWidget(QWidget *widget)
//绑定事件过滤器
this->widget->installEventFilter(this);
//设置悬停为真,必须设置这个,不然当父窗体里边还有子窗体全部遮挡了识别不到MouseMove,需要识别HoverMove
this->widget->setAttribute(Qt::WA_Hover, true);
this->widget->setAttribute(Qt::WA_Hover, true);
}
}

View File

@@ -22,7 +22,7 @@ void frmFramelessWidget::closeEvent(QCloseEvent *)
exit(0);
}
void frmFramelessWidget::on_btnOpen_clicked()
void frmFramelessWidget::on_pushButton_clicked()
{
if (w == 0) {
w = new QWidget;

View File

@@ -4,9 +4,8 @@
#include <QWidget>
class FramelessWidget;
namespace Ui
{
class frmFramelessWidget;
namespace Ui {
class frmFramelessWidget;
}
class frmFramelessWidget : public QWidget
@@ -26,7 +25,7 @@ private:
FramelessWidget *frameless;
private slots:
void on_btnOpen_clicked();
void on_pushButton_clicked();
void stateChanged1(int arg1);
void stateChanged2(int arg1);
};

View File

@@ -13,17 +13,17 @@
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QPushButton" name="btnOpen">
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>181</width>
<height>23</height>
<width>92</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>弹窗无边框窗体</string>
<string>弹</string>
</property>
</widget>
</widget>