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. Integrate C++ application in Qt application
QtWS25 Last Chance

Integrate C++ application in Qt application

Scheduled Pinned Locked Moved General and Desktop
9 Posts 7 Posters 4.3k Views
  • 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.
  • S Offline
    S Offline
    shreya
    wrote on last edited by
    #1

    HI all
    I am new to Qt qnd wish to integrate Qt with a native C++ application of my own.Could you please tell me how to start the connection between the two? :)

    thanks in advance!!

    Edit: split off from "this":http://developer.qt.nokia.com/forums/viewthread/593/ thread, as it seems completely unrelated; Andre

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on last edited by
      #2

      I dont understand the question....Qt is c++ based.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        For what purpose do you want to use Qt in your setup?

        You can have it for GUI, XML, Networking, Container classes, core lib like QString and all the like.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Anticross
          wrote on last edited by
          #4

          You can integrate qt in your existing c++ code for replacing OS dependent API functions by Qt functions to make your application cross-platformed.

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

            I had to do this at work. There is a swarm of available options. The main app is a Google-like X11-based system. I'm in charge of the separate touch-screen-based Qt GUI.

            Ideas:

            • X11 event loop can be replaced with qt's own one: lenghty, effective.
            • Use shared memory between different applications: upload a class full of basic types, then download it on the other end.
            • Use TCP/UDP & communicate via ethernet: super-duper-extensive piece of code, but hey, it does the trick!
            • Use threads: one for your c++ app, one for the new qt based app. It's OK, but quite unstable (i.e.: X11 crashes when running for 40+ hrs)

            Well, that's as far as I can imagine with no additional data :). Post again or PM!

            1 Reply Last reply
            0
            • C Offline
              C Offline
              chandan
              wrote on last edited by
              #6

              QT is a multiplat formed IDE and u can develop any kind of application using c++,ruby,python,html,xml,javascript etc...
              u can developed software like:-
              1. os
              2. web based
              3. mobile apps
              4. game
              5. multimedia etc

              1 Reply Last reply
              0
              • I Offline
                I Offline
                issam
                wrote on last edited by
                #7

                Hi!
                If you are new to Qt, you can see an example (2) in this page : http://www.iissam.com/sources/codes.php
                If you understand french : http://www.siteduzero.com/tutoriel-3-11406-programmez-avec-le-langage-c.html

                Good Luck :)

                http://www.iissam.com/

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  TheDestroyer
                  wrote on last edited by
                  #8

                  I had a native C++ simulation classes and I wanted to create an OpenGL Simulation. I just learned how to create a GUI with Qt, and had to create object instances of the classes I created independent from Qt in my program. And that was it!!!

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #9

                    Please don't necropost. The last answer in the original thread was one year old...

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    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