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. Explain solution for problem of 'QWidget::setMaximumSize: (/QLabel) Negative sizes (-10,16777215) are not possible'
Qt 6.11 is out! See what's new in the release blog

Explain solution for problem of 'QWidget::setMaximumSize: (/QLabel) Negative sizes (-10,16777215) are not possible'

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 2.2k 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-embedded-developer said in Explain solution for problem of 'QWidget::setMaximumSize: (/QLabel) Negative sizes (-10,16777215) are not possible':

      what is solution of this problem ?

      Use a debugger, see where and why it crashes, fix the crash.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Q 1 Reply Last reply
      3
      • Q Qt embedded developer

        This post is deleted!

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @Qt-embedded-developer said in Explain solution for problem of 'QWidget::setMaximumSize: (/QLabel) Negative sizes (-10,16777215) are not possible':

        what is solution of this problem ?

        As @Christian-Ehrlicher says. And don't try to set its maximum width to -10!

        1 Reply Last reply
        1
        • Christian EhrlicherC Christian Ehrlicher

          @Qt-embedded-developer said in Explain solution for problem of 'QWidget::setMaximumSize: (/QLabel) Negative sizes (-10,16777215) are not possible':

          what is solution of this problem ?

          Use a debugger, see where and why it crashes, fix the crash.

          Q Offline
          Q Offline
          Qt embedded developer
          wrote on last edited by
          #4
          This post is deleted!
          jsulmJ 1 Reply Last reply
          0
          • Q Qt embedded developer

            This post is deleted!

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Qt-embedded-developer Isn't that apparent? It happens if negative values are passed to setMaximumSize...

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            4

            • Login

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