Qt 6.11 is out! See what's new in the release
blog
how to call or change the text of a lineEdit which locates in another cpp
General and Desktop
2
Posts
2
Posters
463
Views
2
Watching
-
Hi,
Have a look at the signals and slots chapter of Qt's documentation. Basically, your widget handling the query should emit a signal containing that string value, and in your other widget, you implement a slot that will call
ui->roomnolineEdit->setText(). Doing so also allows you to avoid tight coupling between your widgets.Hope it helps