修正大量demo
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user