Results 1 to 5 of 5

Thread: Qt 4.2.3 with C code

  1. #1
    Join Date
    Oct 2007
    Location
    Caracas - Venezuela
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt 4.2.3 with C code

    Hi!!!!
    I guess that this question had been asked yet, in fact I read here a post about it, but I don't understand.

    So, I have to do a client - server application and I use Qt for the interface and C for the implementation.

    I need to have client code on Qt . How can I do this??

    I read that using qt binding for C like "qtc" I can do it, but where does it download?

    If you give me detailed examples is much better!

    Thanks!!!!!!!!

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.2.3 with C code

    Is there a reason you can't use C++?

  3. #3
    Join Date
    Oct 2007
    Location
    Caracas - Venezuela
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.2.3 with C code

    Yeah! It's a homework and due to directions I have to use C with Qt

  4. #4
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.2.3 with C code

    Then you will need to write C wrappers for the parts of Qt that you use. But you need C++ to write the wrapper in. This is an advanced topic, though.

    p.s. That's if you can't find an up-to-date version of Qt/C. I don't know if one is available.

  5. #5
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt 4.2.3 with C code

    Quote Originally Posted by 3nc31 View Post
    So, I have to do a client - server application and I use Qt for the interface and C for the implementation.
    That's an ambiguous requirement. It's a client server application so I assume it is two programs, a client and a server. For client server applications one could argue that the implementation of the application is the server program and the client is an interface. If your requirement is to use "Qt for the interface and C for the implementation" then you could assume that only the server program has to be in C. Write the server in C using no Qt and write the client in C++ and use bare Qt in the client program. Or, get less ambiguous requirements.

Similar Threads

  1. Qt 4.3.0 lots of Bugs!
    By VireX in forum Qt Programming
    Replies: 69
    Last Post: 20th June 2007, 22:05
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  4. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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.