Patrick N.
|
Qt 4.7 on QNX 6.5.0 SDP1 - QGraphicsSvgItem
|
Patrick N.
08/20/2013 12:16 PM
post104341
|
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
//########################################
|
|
|