开发者

Can I use the search box control seen in Windows Explorer in my own application?

开发者 https://www.devze.com 2023-03-07 04:09 出处:网络
Can I use this search box control seen in Windows Explorer in my own Qt/C++ application? Or is it a custom con开发者_如何学JAVAtrol I\'d have to implement manually?

Can I use this search box control seen in Windows Explorer in my own Qt/C++ application? Or is it a custom con开发者_如何学JAVAtrol I'd have to implement manually?

Can I use the search box control seen in Windows Explorer in my own application?


I haven't seen this kind of control, however in Qt it's easy to implement it manually. You may follow this tutorial: http://labs.qt.nokia.com/2007/06/06/lineedit-with-a-clear-button/ and just replace a clear icon with a search one (and change slot from clear() to something which performs desired search, of course).


You can use the Windows Search Service to access the search functionality; I'm not sure you can embed the actual control that Explorer uses in your own app, but you could certainly create your own that works the same way.

0

精彩评论

暂无评论...
验证码 换一张
取 消