Installation of QT, QT-Creator and the QWT libraries
/Installation, using the Ubuntu package (depreciated)
Creating a simple QWT project with QT-Creator
Start qtcreater from the command line:
qtcreator Select: Create Project -> QT-C++-Project -> QT-GUI-Application Enter a name, e.g. FirstProject Press: EnterY -> Enter -> Enter -> Enter
Now you should have a new GUI project.
If you you click "Design" at the left, you should get the QT-Designer view.
If you scroll down at the left you should see the QwtWidgets, and should be able to drag them onto the form.
Compiling QWT projects
To be able to compile the project, you have just created, you must add the following lines to the .pro file (in this case: FirstProject.pro):
If you use qwt 5.x from the Ubuntu packages:
INCLUDEPATH += /usr/include/qwt-qt4 LIBS += /usr/lib/libqwt-qt4.so.5
If you use Qwt 6.x:
INCLUDEPATH += /usr/local/qwt-6.0.1/include LIBS += /usr/local/qwt-6.0.1/lib/libqwt.so.6
There are two good, free books, that give an introduction to C++ and QT (not to QWT, though):
Hints for Linux newbies
Finding a file:
sudo updatdb # updates the file database; might need some minutes locate qwt_plot.h # finds all the files and directories, that contain the given string
Updating the library cache:
This is needed, when a dynamic library (.so file) is not found, but it exists in one of the configured places. It rescans the configured library search path.
Become a member of the QT Centre forum and ask your questions there: http://www.qtcentre.org/forum/
There is a subforum, dedicated to the Qwt library: http://www.qtcentre.org/forums/23-Qwt
Back to FrontPage