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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        For Gerrit Dashboard: QTBUG-124301
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes