Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qt 4.7 on QNX 6.5.0 SDP1 - QGraphicsSvgItem: (5 Items)
   
Qt 4.7 on QNX 6.5.0 SDP1 - QGraphicsSvgItem  
Hi @ all!

I have a small problem:

I created a qt program which uses a QGraphicsSvgItem for using svg-images. Now I tried to crosscompile on my windows 
machine for qnx, but get the error: "QGraphicsSvgItem: No such file or directory"

So it cannot find the file it has to include.. So much I understand :)
But some qt4 examples from "qt_qnx_2011-02-24b.zip" also use this QGraphicsSvgItem, so it should have the binary or not?


Some ramblings about my program that might be helpful:
I use a windows8 machine and crosscompile qt4 programs for use in a beagleboard-xM. The bsp is the actual one for this 
board.
The problem occurs in my h. file and follwing other failures are only because of this missing include. The 
QGraphicsSvgItem is called inside a QGraphicsItem which is added to a QGraphicsScene. 
Maybe the problem is only about including the binary (if so tell me pls where to put the binary -> couldn´t find the 
correct directory).
Differences to the example "svgviewer" is only that the svgItem is called inside the .cpp-file.

//########################################
#ifndef BACKCIRCLE_H
#define BACKCIRCLE_H

#include <QGraphicsObject>
#include <QGraphicsItem>
#include <QPainter>
#include <QCoreApplication>
#include <QGraphicsSvgItem>


class BackCircle : public QGraphicsObject
{
public:
    BackCircle(int maxVal, QGraphicsItem *parent = 0, int parts = 8, int stil = 0);
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    void textPaint(QPainter &p);

private:
    QGraphicsSvgItem *picture;
    int A1, A2;
    QPen *darkRedPen;
    QPen *whitePen;
    int maxvalue;
    int design;
    int split;
};

#endif // BACKCIRCLE_H
//########################################
Re: Qt 4.7 on QNX 6.5.0 SDP1 - QGraphicsSvgItem  
Below \qnx650\target\qnx6\usr\include you should be able to find these files in a subdirectory "QtSvg".

QGraphicsSvgItem
qgraphicssvgitem.h

The first simply points to the second.

I believe I found these for 4.8 ... not sure about 4.7.
Re: Qt 4.7 on QNX 6.5.0 SDP1 - QGraphicsSvgItem  
Yeah, I found them.
In my case they are in \qnx650\target\qnx6\usr\include\qt4\QtSvg

Then what else could be the problem? Any idea?
It should be a problem with the including I think.. 
Re: Qt 4.7 on QNX 6.5.0 SDP1 - QGraphicsSvgItem  
QGraphicsSvgItem was first introduced in Qt 4.2 so it should be no problem with Qt for QNX, or not?
Re: Qt 4.7 on QNX 6.5.0 SDP1 - QGraphicsSvgItem  
To all which are interested ;)

Found the problem  now! I forgot to update the qmake_qnx.bat file. 
There I can add some additional modules, which I also use in QtCreator.
-> added a "svg" and it is working now :D