hi,guys!
now i meet a problem that when i use installEventFilter() function to a QLineEdit like "lineEdit->installEventFilter(this);"
if i run my program the QLineEdit is invisible! i never meet this situation before!who can give me some advice!thanks!
the code as follows:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->lineEdit->installEventFilter(this);
}
Bookmarks