fix:搜索框没有提示字的问题
This commit is contained in:
parent
1be6e62d55
commit
b693c27adf
|
@ -66,6 +66,9 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
filterAppsByKeyword(keyword);
|
||||
});
|
||||
initStyle();
|
||||
|
||||
// 确保搜索框内容为空,placeholder 能显示
|
||||
ui->searchPlainTextEdit->clear();
|
||||
});
|
||||
|
||||
// 启动异步任务
|
||||
|
@ -91,6 +94,9 @@ void MainWindow::initStyle()
|
|||
line-height: 1.4;
|
||||
color: #9CA3AF;
|
||||
}
|
||||
QPlainTextEdit[placeholderText]:empty {
|
||||
color: #9CA3AF;
|
||||
}
|
||||
)");
|
||||
|
||||
ui->searchPlainTextEdit->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
|
|
Loading…
Reference in New Issue