Hello anyone

Iám using windows xp with qt-4.5.2
I have a application with QGLWidget and FTGL
I use this application for 3d font and its works fine.
Its works together with a .ttf file.
I have read the documentation FTGL and its only can be used for fonts or special fonts.

I want to use a Pixmap.
Is it possible to do this.
Must i convert the QPixmap to QBytearray? or something else QBuffer.

This is a piece of my implentation glwidget.cpp
Qt Code:
  1. // Set up the FTGL library for 3D text rendering
  2. bool GLWidget::initFTGL() {
  3. font = new FTExtrudeFont("Arial.ttf");
  4. if (font->Error()) {
  5. qDebug("initFTGL(): Could not load font.");
  6. return false;
  7. }
  8. font->FaceSize(14);
  9. font->Depth(1.0f);
  10. return true;
  11. }
To copy to clipboard, switch view to plain text mode 

In my paintGL()

Qt Code:
  1. void GLWidget::paintGL()
  2. {
  3. ......
  4. QByteArray cStr = ( QVariant("img/s.png" ) ).toByteArray() ;
  5. FTBBox rect = font->BBox(cStr.data());
  6. FTPoint p = rect.Upper();
  7. glColor3f(0.0,0.0,0.0);
  8. glRotatef(rot, 0.0f, 1.0f, 0.0f);
  9. glTranslatef(-p.Xf() / 2.0f, -p.Yf() / 2.0f, 0.0f);
  10. font->Render(cStr.data());
  11. }
To copy to clipboard, switch view to plain text mode 

I only see in my application the text img/s.png not the image


Thanks in advance.