Mohammad Kanan
Mohammad Kanan

Reputation: 4592

Qt Creator Search inside code searches whole words only

Sometime ago, I remember I made advanced search and checked the Whole words only checkbox found beneath search box .. finished the search and unchecked the search filter.

Before that, I was always able to search inside code by highlighting arbitrary text and doing simple search (not advanced search) .. and the search always worked. But now .. this simple search does not work .. the search only works when I highlight a Whole word, even though I am not doing advanced search nor any of the advanced search filter is checked .. I want to know how to remove search filter for simple, inside code, search ...

Upvotes: 2

Views: 398

Answers (3)

Amirali Amirali
Amirali Amirali

Reputation: 1

this simple search does not work. Do you mean the search result is not whole words only? – Limina102 CommentedAug 16, 2020 at 7:13 @Aoyama , no, search should be possible even with any highlighted text .. which may, or may not be a whole word – Mohammad Kanan CommentedAug 16, 2020 at 11:00 The search just doesn't happen? This is so weird! – Limina102 CommentedAug 17, 2020 at 10:26

Upvotes: -1

Pierre
Pierre

Reputation: 4406

"Whole word" is not working as I expect. Searching for "XYZ" (Whole word) matches "XYZ_ABC", which is not a "Whole word" match.

Yeah yeah I know... switch from Qt 5 to Qt 6. Well that's not an option right now.

Upvotes: 0

Mohammad Kanan
Mohammad Kanan

Reputation: 4592

Well, strange did not to think about it! The simple search also has a filter list .. I just never noticed! There is a search icon and a filter drop down inside the simple search box .. !

enter image description here

Upvotes: 2

Related Questions