Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, I want to select a QLineEdit when I press a button. Is there a way to do this?
@Sucharek Untested, but isn't all you want to call QWidget::setFocus() on the desired QLineEdit from the slot for the QPushButton click? I think "selecting" just means setting the focus to that widget.
QLineEdit
QPushButton
Hi @JonB, yes, that worked perfectly. Thanks for solving this :D