Insider Asked:2020-02-23 00:21:54 +0800 CST2020-02-23 00:21:54 +0800 CST 2020-02-23 00:21:54 +0800 CST QString 如何与 LineEdit 进行比较 772 如何将写入的内容LineEdit与某些内容进行比较QString并输出true/false c++ 1 个回答 Voted Best Answer e.n.shirokov 2020-02-24T06:01:55+08:002020-02-24T06:01:55+08:00 QString strForCmp = "str for copmpare"; QString str = lineEdit->text(); if(str.contains(strForCmp)) { // если есть совпадение ... }
1 个回答