You can set the stylesheet for the application or for the parent of these changes:
window()->setStyleSheet("QLineEdit { border: none }");
or
window()->setStyleSheet("QLineEdit { qproperty-frame: false }");
The latter is equivalent to executing the following code:
for(auto ed : window()->findChildren<QLineEdit*>())
ed->setFrame(false);
window()refers to QWidget * QWidget::window() const.
Since you want to do this across the entire application, you can simply set the stylesheet in the application:
qApp->setStyleSheet("QLineEdit { qproperty-frame: false }");
CSS . CSS .