[Solved]How to create OS specific Qt Widget ?
-
Hi Everyone
Have a nice day.I want to create Qt widget, but aware of all OS and unique to the windows OS .In windows OS had jumplist ,i want to create that kind of Qt widget but it unique for the windows aware of other OS.please give me some idea to achieve my goal.
Thanks
-
Hi,
Do you mean a widget that is only built for Microsoft Windows ?
-
Thanks for your reply ,Yes i had that kind of requirement when my Qt application run in windows environment its only appear in windows style jump list but i don't need to use that jump list when my application run other OS its only appear in windows environment.
-
Then use a scope in your pro file to build the widget only when building for windows and in your code use
@#ifdef Q_WS_WIN
#endif@around the code concerning the use of your widget