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. How to call native apis
Qt 6.11 is out! See what's new in the release blog

How to call native apis

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 928 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.
  • B Offline
    B Offline
    Balaji N
    wrote on last edited by
    #1

    In QT, how to call native apis?
    Please provide the examples. How to call the api for Windows, Linux, mac OS.

    jsulmJ JonBJ 2 Replies Last reply
    0
    • B Balaji N

      In QT, how to call native apis?
      Please provide the examples. How to call the api for Windows, Linux, mac OS.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Balaji-N This does not have anything to do with Qt. Qt is not a programming language.
      You call native APIs like in any other C/C++ application.
      "Please provide the examples" - please read documentation for these APIs. This is Qt forum and not native Windows/Linux/MacOS API forum.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • B Balaji N

        In QT, how to call native apis?
        Please provide the examples. How to call the api for Windows, Linux, mac OS.

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by JonB
        #3

        @Balaji-N
        Further to @jsulm, the whole point of using Qt is that (hopefully) you should not have/want to call any native APIs at all, since Qt provides an abstraction layer on top of most of them.

        1 Reply Last reply
        2
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          this shows something simple.
          http://amin-ahmadi.com/2015/06/26/how-to-use-windows-api-in-qt-a-simple-example/
          so for other API calls, you would need to link the rights DLLs.
          This is windows only.

          Both Linux and macOS will be very different.

          1 Reply Last reply
          2

          • Login

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