[weston 11.0.1] QT button is not released
I'm using weston 11.0.1 and QT5.15.2 on embedded platform,
When the QPushButton is pressed, another component calls the activeWindow. As a result, the QPushButton cannot receive the mouseReleased event. In the following example code, clicking the button once triggers the timer to time itself. Then press the button and wait for the timing time to arrive. After releasing the button, you can find that the button is not released.
#include "dialog.h"
#include "ui_dialog.h"
#include <QDebug>
#include <QTimer>
Dialog::Dialog(QWidget *parent)
: QDialog(parent)
, ui(new Ui::Dialog)
{
ui->setupUi(this);
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(test()));
}
Dialog::~Dialog()
{
delete ui;
}
void Dialog::test()
{
timer->stop();
ui->tableWidget->activateWindow();
qDebug()<<__FILE__<<__FUNCTION__<<__LINE__<< "Time to arrive";
}
void Dialog::on_pushButton_clicked()
{
timer->start(1000);
}
here is the app src TestProject.7z
Edited by bot crack