Page 1 of 1

[SOLVED] QtGui problem

PostPosted: Aug 2nd, '13, 15:27
by snjv
Hello,
I am using Mageia 3 and having problems in using QPaint related features. I installed QtCreator and others that I believe are required. But strangely QtGui is not to be found anywhere. Even more puzzling is that libQtGui.so exists but not the header file!

Code: Select all
$ locate -i QtGui | grep -v PyQt
/usr/lib64/libQtGui.so.4
/usr/lib64/libQtGui.so.4.8
/usr/lib64/libQtGui.so.4.8.4
$ qmake -v
QMake version 3.0
Using Qt version 5.0.2 in /usr/lib64/qt5/lib
$


I also did not find libqtgui5 in repos but libqtgui4 is available.

Could anyone suggest me a solution please?
Thanks,
-S

Re: QtGui problem

PostPosted: Aug 2nd, '13, 17:01
by tom_
I think you are looking for QT include files like qwidget.h,
so the most appropriate command to find the package containing it is

Code: Select all
urpmf qwidget.h


which should say theat you need to install the package lib64qt4-devel or libqt4-devel

Re: QtGui problem

PostPosted: Aug 2nd, '13, 18:45
by jkerr82508
snjv wrote:I also did not find libqtgui5 in repos but libqtgui4 is available.

Search for libqt5gui5 (or lib64qt5gui5). The package naming scheme seems to have changed somewhat for QT5.
You probably also want one or more "lib(64)qt5" devel packages - there are a lot of them.

Jim

Re: QtGui problem

PostPosted: Aug 3rd, '13, 06:45
by snjv
Thank you jkerr82508 and tom_. I could get QPaint to work after the following steps

Code: Select all
urpmi lib64qt5gui5
urpmi qtbase5-common-devel
urpmi lib64qt5gui5-devel
urpmi lib64qt5gui-devel
urpmi libqt5widgets-devel


This is to be followed by modifying .pro file with additional line:
Code: Select all
QT += widgets


I still can't figureout why this was required to be done manually, adding #include <QWidgets> does not work!

Thanks again,
-S