0

Как сравнить написано в LineEdit с каким-нибудь QString и вывести true/false

1

1 ответ 1

0
QString strForCmp = "str for copmpare";

QString str = lineEdit->text();


if(str.contains(strForCmp)) {
    // если есть совпадение
    ...
}

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.