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

QTableView resize causes infinite loop if signal is connected before model is set

XMLWordPrintable

    • Windows
    • 960867566 (dev), 980cd76e6 (6.7)

      If the signal for a model's modelReset is set up before the model is assigned to a view, having that signal call resizeColumnsToContents(); on the view results in an infinite loop, immediately freezing the application.

      If the model is assigned to the view before the signal is set up the issue is avoided.

       

      See the attached project, to reproduce run the application, scroll down any amount then press the Update button.

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

            vhilshei Volker Hilsheimer
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes