Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, January 2007
QPicture::inputFormats() => 0 ?


Message 1 in thread

Hi, all,

My Qt4.1.1 tells both input/output formats are zero.

    QList<QByteArray> ins = QPicture::inputFormats();
    QList<QByteArray> outs = QPicture::outputFormats();
    int m = ins.size(); // =0  ???
    int n = outs.size(); // =0 ???

Does anyone know the reason?

Thanks,
Lingfa

--
 [ signature omitted ] 

Message 2 in thread

BTW,  the following code in Qt documentation:
   http://doc.trolltech.com/4.2/qpicture.html
does not work.
   QPicture picture;
   QPainter painter;
   painter.begin(&picture); // paint in picture
   painter.drawEllipse(10,20, 80,70); // draw an ellipse
   painter.end(); // painting done
   picture.save("drawing.pic"); // save picture
because
   QList<QByteArray> outs = QPicture::outputFormats();
   int n = outs.size(); // = 0
shows no any support.

--
 [ signature omitted ]