Is there a way to get access to the virtual framebuffer inside a QPixmap, so that we can render to this address, and then blt the result to screen?

Yes. It is Qt for Embedded Linux specific, but you can obtain a pointer to the bits of a QPixmap []. For example:

  1. void SomeClass::someFunc(){
  2. #ifdef Q_WS_QWS
  3.   QPixmap pm;
  4.   uchar *bits = pm.scanLine(0);
  5.   int bytesPerLine = pm.bytesPerLine();
  6. #endif


No comments

Write a comment

Sorry, you must be logged in to post a comment.