Results 1 to 4 of 4

Thread: Can I use QT as a library just as I would use Win32 API?

  1. #1
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Platforms
    Windows Android

    Question Can I use QT as a library just as I would use Win32 API?

    Hi

    I was wondering if QT could be used as simple as including a header or a couple of headers and then just using the APIs, just as you would use WIN32 API, for instance, you just add #include <windows.h> and use the API, as simple as that, nothing to install nothing difficult to do to make it run.

    I've seen in the QT download page that there's a "QT Library" and I wonder if, can I use this library as easy as I can use WIN32 API?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Can I use QT as a library just as I would use Win32 API?

    Yes and no.

    Qt is a library so it can be used like any other library, i.e. by including its headers and using its classes and functions.

    Of course it is different to the system library in that it needs to be shipped with the application since it is not present on any system by default (like the system API obviously is).

    Cheers,
    _

  3. #3
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Platforms
    Windows Android

    Default Re: Can I use QT as a library just as I would use Win32 API?

    Quote Originally Posted by anda_skoa View Post
    Yes and no.

    Qt is a library so it can be used like any other library, i.e. by including its headers and using its classes and functions.

    Of course it is different to the system library in that it needs to be shipped with the application since it is not present on any system by default (like the system API obviously is).

    Cheers,
    _
    Thanks for answering!

    So, Instead of downloading the QT creator I just download the QT libraries and then add the proper headers in my code and I can develop using QT without installing any additional IDEs?

    How Do I create the installer that allows me to distribute my application?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Can I use QT as a library just as I would use Win32 API?

    Quote Originally Posted by m4l490n View Post
    So, Instead of downloading the QT creator I just download the QT libraries and then add the proper headers in my code and I can develop using QT without installing any additional IDEs?
    Yes, Qt is not tied to any specific IDE.
    QtCreator has some nice features for developing with Qt but one can use any editor or IDE that can deal with C++. There are even plugins for other IDEs to offer better Qt integration.

    Quote Originally Posted by m4l490n View Post
    How Do I create the installer that allows me to distribute my application?
    The same way you would usually create an installer for the target platform.

    Cheers,
    _

  5. The following user says thank you to anda_skoa for this useful post:

    m4l490n (25th March 2013)

Similar Threads

  1. Replies: 4
    Last Post: 30th September 2012, 10:18
  2. Using a Win32 library
    By luochen601 in forum Qt Programming
    Replies: 3
    Last Post: 28th July 2010, 04:58
  3. Win32 static library
    By jacky in forum Newbie
    Replies: 1
    Last Post: 19th April 2009, 15:35
  4. Using a Win32 static library
    By jacky in forum Qt Programming
    Replies: 2
    Last Post: 15th April 2009, 04:39
  5. Win32 qmake: building a static library
    By Amanda in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2006, 19:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.