[SOLVED] QtGui problem

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] QtGui problem

Postby snjv » Aug 2nd, '13, 15:27

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
Last edited by snjv on Aug 3rd, '13, 06:47, edited 1 time in total.
snjv
 
Posts: 11
Joined: May 18th, '13, 06:57

Re: QtGui problem

Postby tom_ » Aug 2nd, '13, 17:01

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
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: QtGui problem

Postby jkerr82508 » Aug 2nd, '13, 18:45

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
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: QtGui problem

Postby snjv » Aug 3rd, '13, 06:45

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
snjv
 
Posts: 11
Joined: May 18th, '13, 06:57


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron