Qt and c++ combination
-
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 -
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.
-
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.
-
A quick google search came up with "this":http://www.richelbilderbeek.nl/CppQtHelloWorldWindowedGui.htm example: