Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved]How to create OS specific Qt Widget ?

    General and Desktop
    2
    5
    1286
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Diluka last edited by

      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

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Do you mean a widget that is only built for Microsoft Windows ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • D
          Diluka last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • D
              Diluka last edited by

              Thanks again I will try

              1 Reply Last reply Reply Quote 0
              • First post
                Last post