Results 1 to 3 of 3

Thread: QT5 API C only

  1. #1
    Join Date
    Oct 2024
    Posts
    1
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default QT5 API C only

    Hello,

    first message... I know that C++ is only an extension of C, but to avoid getting confused I am looking for the QT5 API doc for the C language version.

    Thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    516
    Thanks
    12
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QT5 API C only

    Hi, saying that C++ is an extension of C is wrong in my opinion. It's much more than just a "C with classes". And I doubt that there is a C version of the Qt API.
    If you want to use C and not C++ then you may be better of using GTK instead of Qt.

    Ginsengelf

    edit: Wikipedia lists this: https://github.com/filcuc/dotherside
    There have been no updates for the last two years, and I don't know how well it works, or if it works at all.
    Last edited by Ginsengelf; 28th October 2024 at 14:38.

  3. The following user says thank you to Ginsengelf for this useful post:

    vivid (28th October 2024)

  4. #3
    Join Date
    Nov 2024
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: QT5 API C only

    You can write C-style functions that call C++ code (Qt functions). Use the extern "C" linkage when mixing C and C++ code to prevent name mangling.
    Buckshot Roulette

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.