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. Is Qt is platform dependant or Independant?

Is Qt is platform dependant or Independant?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 571 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Ashutosh_Sachdeva
    wrote on last edited by
    #1

    Is Qt is platform dependant or Independant? For ex. I have made and GUI application for a device in linux can i used the same gui pages/ code for the the same device in windows compatible qt?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's the core goal of Qt: provide an abstraction of common system API so you can write your code once and build it on all platforms. Therefore unless you used some platform specific API then yes you can build your code base on Windows.

      And if you did use platform specific API, then wrap them properly and only compile them on the platform were they make sense.

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

      A 1 Reply Last reply
      6
      • SGaistS SGaist

        Hi and welcome to devnet,

        That's the core goal of Qt: provide an abstraction of common system API so you can write your code once and build it on all platforms. Therefore unless you used some platform specific API then yes you can build your code base on Windows.

        And if you did use platform specific API, then wrap them properly and only compile them on the platform were they make sense.

        A Offline
        A Offline
        Ashutosh_Sachdeva
        wrote on last edited by
        #3

        @SGaist Thanku

        aha_1980A 1 Reply Last reply
        1
        • A Ashutosh_Sachdeva

          @SGaist Thanku

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Ashutosh_Sachdeva so please mark this topic as SOLVED too. Thanks!

          Qt has to stay free or it will die.

          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