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. QWindowsWindow::setGeometry: Unable to set geometry
QtWS25 Last Chance

QWindowsWindow::setGeometry: Unable to set geometry

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 12.3k Views
  • 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.
  • A Offline
    A Offline
    aashish.lg
    wrote on last edited by
    #1

    I have developed one QWebView application earlier using Qt4.8.1 SDk.
    Now I have recompiled my application using VS2012 Qt SDK 5.1 64 bit.
    I am getting the below mention error message in some of websites.

    QWindowsWindow::setGeometry: Unable to set geometry

    Please let me know what this error message represents and how to get rid out of it.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mottosso
      wrote on last edited by
      #2

      I'm in this boat too on PyQt5.

      Using a QBoxLayout causes the error for me. Would love to hear of a possible solution to this issue.

      Python 2.7.5, PyQt 5.1.1 compiled with Qt 5.1.1 msvc opengl on Windows 7 x64

      @class Window(QWidget):
      def init(self, parent=None):
      super(Window, self).init(parent)

          header = QWidget()
      
          layout = QBoxLayout(QBoxLayout.TopToBottom, self)
          layout.addWidget(header)
      

      if name == 'main':
      app = QApplication(sys.argv)

      win = Window()
      win.show()
      
      sys.exit(app.exec_())
      

      QWindowsWindow::setGeometry: Unable to set geometry 22x22+640+285 on 'WindowClassWindow'. Resulting geometry: 116x22+640+285 (frame: 8, 30, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 22x22, maximum size: 16777215x16777215).@

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nelsojost
        wrote on last edited by
        #3

        I got this error/warning on Windows 8.1 and it seems to be just a matter of a limitation on the minimum size of the window (imposed by the OS or window manager) when it does not have enough space for the window title and/or standard GUI buttons.

        When I set a fixed width of 100 pixels I got the error, but setting its minimun to 200 seems enought to avoid the error.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nelsojost
          wrote on last edited by
          #4

          I got this error/warning on Windows 8.1 and it seems to be just a matter of a limitation on the minimum size of the window (imposed by the OS or window manager) when it does not have enough space for the window title and/or standard GUI buttons.

          When I set a fixed width of 100 pixels I got the error, but setting its minimun to 200 seems enought to avoid the error.

          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