Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SetGeometry: Unable to set geometry | createDIB: CreateDIBSection failed.
Qt 6.11 is out! See what's new in the release blog

SetGeometry: Unable to set geometry | createDIB: CreateDIBSection failed.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 6.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rhadel
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      realtebo
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved