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?
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.
精彩评论