graeme
1st April 2006, 21:06
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:
uchar *QImage::scanLine(int i)
{
detach();
Q_ASSERT(i >= 0 && i < height());
return d->data + i * d->bytes_per_line;
}
Any help would be gratefully received.
graeme.
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:
uchar *QImage::scanLine(int i)
{
detach();
Q_ASSERT(i >= 0 && i < height());
return d->data + i * d->bytes_per_line;
}
Any help would be gratefully received.
graeme.