Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104565

QTableWidgets: crash when double click into table cell end that expands beyond window

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 9fcd5f0790 (qt/qtbase/dev) 9fcd5f0790 (qt/tqtc-qtbase/dev) 87d4cb06b1 (qt/qtbase/6.4) 87d4cb06b1 (qt/tqtc-qtbase/6.4) c808f94167 (qt/tqtc-qtbase/6.2) 7a0f50942d (qt/qtbase/6.3) 7a0f50942d (qt/tqtc-qtbase/6.3)

    Description

      crash if table cell end is outside window

      to reproduce:

      • build Sample in QTableWidgetBug.zip
      • double click first cell -> "ASSERT: "!(max < min)" in file C:\Users\qt\work\qt\qtbase\include\QtCore\../../src/corelib/global/qglobal.h, line 1043"
      • ignore assert
      • enter text -> crash 

      occurs with downloaded Qt 6.3.1 MSVC2019 64bit 

      Neither Qt Mac 6.3.1 nor Qt Windows 5.15.10 have this problem

      void QExpandingLineEdit::resizeToContents() src/widgets/itemviews/qitemeditorfactory.cpp:594

      	Locals		
      		hintWidth	157	int
      		maxWidth	68	int
      		newWidth	0	int
      		oldWidth	157	int
      		parent	"qt_scrollarea_viewport"	QWidget
      		parentWidth	68	int
      		position	(0, 0)	QPoint
      		this	@0x5586f422eff0	QExpandingLineEdit
       

      Attachments

        1. qtbug104565_stack.txt
          53 kB
        2. QTableWidgetBug.zip
          2 kB
        3. main.cpp
          0.2 kB
        4. dialog.ui
          2 kB
        5. dialog.h
          0.3 kB
        6. dialog.cpp
          0.7 kB
        7. CMakeLists.txt
          2 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vhilshei Volker Hilsheimer
              yresk Martin Sander
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes