Hi,

I'm not certain if this should be a design or a programming question however...

I want to add an icon to the window of my application. I have used the designer (4.1.0) and added a .png as my icon the image was a 16x16 (although I have tried 24x24 & 32x32 with the same sad result) The designer accepts the image and displays how it will look in the window.

I save, compile and run. But when I run it I get the following problem:

ASSERT: "i>=0 && i< height()" in file image/qimage.cpp, line1311

The code in qimage is as follows:

Qt Code:
  1. uchar *QImage::scanLine(int i)
  2. {
  3. detach();
  4. Q_ASSERT(i >= 0 && i < height());
  5. return d->data + i * d->bytes_per_line;
  6. }
To copy to clipboard, switch view to plain text mode 

Any help would be gratefully received.

graeme.