Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved]How to create OS specific Qt Widget ?

[Solved]How to create OS specific Qt Widget ?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.4k Views
  • 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 Offline
    D Offline
    Diluka
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • D Offline
        D Offline
        Diluka
        wrote on last edited by
        #3

        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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • D Offline
            D Offline
            Diluka
            wrote on last edited by
            #5

            Thanks again I will try

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved