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. Qt and c++ combination
Forum Updated to NodeBB v4.3 + New Features

Qt and c++ combination

Scheduled Pinned Locked Moved General and Desktop
10 Posts 4 Posters 2.4k 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.
  • U Offline
    U Offline
    uniunit
    wrote on last edited by
    #1

    I have downloaded qtlibraries with designer. Where can I post eventhandlers with it? Can I use qt with eclipsecdt? How does some code can open an ui? or vice verse? I am using c++

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi,

      I don't get what you try to do. Designer is the tool you use to create a Qt UIgraphically.
      What do you want to do with eventhandlers? Or do you need signal/slot?
      You can use eclipse if you want, but I never do it. I use MSVC or QtCreator.

      Maybe you should start with teh Qt tutorials:
      http://qt-project.org/doc/qt-5/gettingstarted.html

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vezprog
        wrote on last edited by
        #3

        My first suggestion would be to download QtCreator, as it is a light weight IDE and is tailored to using Qt's libraries. Plus, it has the designer built into it. Although, most IDE's will work, since Qt is just a framework / C++ libraries.

        Second, you should familiarize yourself with how Qt works in general including QMake, "Signals and Slots":http://qt-project.org/doc/qt-4.8/signalsandslots.html, and "QApplication (GUI applications)":http://qt-project.org/doc/qt-5/qapplication.html / "QCoreApplication (console applications)":http://qt-project.org/doc/qt-5/QCoreApplication.html. Once you get the basic concept of how the event system works, you should be off to the races.

        Any C++ code will work in a Qt Project. Try downloading Qt from the "online installer ":http://qt-project.org/downloads , and take a look at some of the examples. The online installer includes QtCreator as well.

        1 Reply Last reply
        0
        • U Offline
          U Offline
          uniunit
          wrote on last edited by
          #4

          How do I convert ui graphical code to code standard c?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andreyc
            wrote on last edited by
            #5

            There is no tool to translate .ui to "standard c". So you need to write it or you can use "User Interface Compiler (uic)":http://qt-project.org/doc/qt-5/uic.html to translate .ui files to C++ files.

            1 Reply Last reply
            0
            • U Offline
              U Offline
              uniunit
              wrote on last edited by
              #6

              where is it available for download?

              1 Reply Last reply
              0
              • U Offline
                U Offline
                uniunit
                wrote on last edited by
                #7

                What actions do I need to do in order to write a simple helloworld for buttonclick?

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vezprog
                  wrote on last edited by
                  #8

                  A quick google search came up with "this":http://www.richelbilderbeek.nl/CppQtHelloWorldWindowedGui.htm example:

                  1 Reply Last reply
                  0
                  • U Offline
                    U Offline
                    uniunit
                    wrote on last edited by
                    #9

                    How can I import a qt4 project and set c++ code for it?

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      giesbert
                      wrote on last edited by
                      #10

                      Hey uniunit.

                      Maybe you should start with reading the tutorials or a good Qt Book.
                      Qt is standard C++. If you know C++, and a bit of Qt, you can do all that.

                      Nokia Certified Qt Specialist.
                      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                      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