110VCGQ/485SWJ/CGQ485V2/CGQ485/mycombobox.cpp

17 lines
264 B
C++
Raw Normal View History

2024-11-18 10:09:39 +08:00
#include "mycombobox.h"
MyComboBox::MyComboBox(QWidget *parent):QComboBox(parent)
{
}
void MyComboBox::mousePressEvent(QMouseEvent *event)
{
if(event->button() == Qt::LeftButton)
{
emit clicked();
}
QComboBox::mousePressEvent(event);
}