Hi all,
I got trouble when QDrag setPixmap with "XBM" format.(X11 env.)
You can reproduce it by modify exmaple ~qt4.x.src/examples/draganddrop/draggableicons/dragwidget.cpp
Replace Line #110 ( drag->setPixmap(pixmap); ) with
Qt Code:
  1. {
  2. static unsigned char drag_bits[] = {
  3. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  4. 0x00, 0x7f, 0x00, 0x00, 0x41, 0x00, 0x00, 0x41, 0x00, 0xff, 0xc1, 0x0f,
  5. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xf0, 0x0f,
  6. 0x40, 0x10, 0x00, 0x40, 0x10, 0x00, 0xc0, 0x1f, 0x00, 0x00, 0x00, 0x00,
  7. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  8.  
  9. QBitmap pixmap = QBitmap::fromData(
  10. QSize(20, 20), drag_bits, QImage::Format_Mono);
  11. pixmap.setMask(QPixmap::grabWidget(this).createHeuristicMask(true));
  12. drag->setPixmap((QPixmap)pixmap);
  13.  
  14. }
To copy to clipboard, switch view to plain text mode 
When we start dragging,
we can find the icon is not xbm format, it become color not mono.
And draggable icon contain background color

Does anyone can help me?
I need mono draggable icon.(XBM format)