开发者

Creating my own Qt widget for a search box

my question is somewhat related to Search button inside the search box like Bing. I plan to use a similar control to provide search facility within my desktop application. The search box is somewhat like the search box given in the windows explorer in Windows 7 where the text "search" appears and when the user enters text to search it'll show suggestions and close matches. Also when the search query is cleared there'll be a slight transition such as a fade out, so that the entire control looks smooth in operation.

I haven't done this using MFC/Windows programming, but I've a feeling this should be easier on Qt. I've seen the Qt example using QML bu开发者_开发问答t i don't plan to use QML.

Can you guys suggest a way for me to do this in Qt ?


Use QLineEdit with a QCompleter , for the Windows 7 search box effect see setPlaceHolderText(...) function.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜