V6.7.4 追加更新
This commit is contained in:
+3
-1
@@ -8,7 +8,7 @@
|
||||
#include <QKeyEvent>
|
||||
|
||||
DigitalInput::DigitalInput(MyInputMethod *myInputMethod,QWidget *parent) :
|
||||
QWidget(parent,(Qt::FramelessWindowHint )),
|
||||
QWidget(parent,(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::Tool | Qt::BypassWindowManagerHint)),
|
||||
ui(new Ui::DigitalInput)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
@@ -143,6 +143,8 @@ void DigitalInput::onClrPressed()
|
||||
void DigitalInput::showEvent(QShowEvent *event)
|
||||
{
|
||||
QWidget::showEvent(event);
|
||||
raise();
|
||||
|
||||
auto focusWidget = qApp->focusWidget();
|
||||
QSpinBox* box = dynamic_cast<QSpinBox*>(focusWidget);
|
||||
if(!box) {
|
||||
|
||||
Reference in New Issue
Block a user