Hi,

I am looking for a method to port MFC code to QT;

This is the MFC code:
Qt Code:
  1. short int tab = { 0x00FF, 0x00FF, 0x00FF, 0x00FF, 0x00FF, 0x00FF, 0x00FF, 0x00FF };
  2. CBitmap* bitmap;
  3. bitmap -> CreateBitmap(8, 8, 1, 1, tab);
To copy to clipboard, switch view to plain text mode 

I need to create a QBrush from that bitmap.

Thanks for help.

Kacper