gpt4 book ai didi

c++ - 将 Qt::MatchExactly 设置为不区分大小写

转载 作者:行者123 更新时间:2023-11-28 07:30:52 30 4
gpt4 key购买 nike

我在 QStandardItemModel 的 findItems 方法中使用 QT::MatchExactly。我想知道有没有把它变成不区分大小写的?目前我有这样的东西:

mymodel->findItems("abc",Qt::MatchExactly,0);

最佳答案

使用Qt::MatchFixedString :

mymodel->findItems("abc", Qt::MatchFixedString, 0);

最后一个参数已经默认为 0,顺便说一句,所以你可以这样写:

mymodel->findItems("abc", Qt::MatchFixedString);

关于c++ - 将 Qt::MatchExactly 设置为不区分大小写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17750630/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com