how to convert between QPixmap/QImage and Xlib Pixmap?
Unsolved
General and Desktop
-
Hi,
I need to use some native feature from x11 , so I need to convert between QPixmap/QImage and Xlib Pixmap, but I learned that the QPixmap::fromX11Pixmap() has been deprecated since Qt5. so is there any way to convert between QPixmap/QImage and Xlib Pixmap?Thank you.
-
Hi,
You can take a look at the XCB QPA plugin to see how to get a QPixmap from an XImage. The function that will interest you is
qt_xcb_pixmapFromXPixmap