SetGeometry: Unable to set geometry | createDIB: CreateDIBSection failed.
-
I am trying to show a long string label. Qt returns the following error:
setGeometry: Unable to set geometry 156015x699+414+170 on 'MainWindowWindow'. Resulting geometry: 65519x699+414+170 (frame: 8, 30, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 156015x356, maximum size: 16777215x16777215).
createDIB: CreateDIBSection failed.How can I draw a long label?
-
I've the same problem, but with this very simple code !
@#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("<h2><i>Hello</i> "
"<font color=red>Qt!</font></h2>");label->show(); return app.exec();
}
@I got this error in output console at every run;
bq. Debugging starts
SHIMVIEW: ShimInfo(Complete)
setGeometry: Unable to set geometry 75x21+320+252 on QWidgetWindow/'QLabelClassWindow'. Resulting geometry: 124x21+320+252 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 0x0, maximum size: 16777215x16777215).
Debugging has finished