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

Application hangs on calling QXYSeries::sizeBy and QXYSeries::colorBy methods for a large number of scatter points.

    XMLWordPrintable

Details

    • ffc79d1da (dev)

    Description

      Application hangs on calling QXYSeries::sizeBy and QXYSeries::colorBy methods for a large number of scatter points.
      To demonstrate the problem, I have attached a sample code. This works fine right now, but try it by setting `num_of_points = 1000`, you should be able to see the hang.

      My guess is that this happens due to repeatedly emitting `pointsConfigurationChanged` signal for each scatter point while setting it's configuration.

      As a workaround, I blocked all signals of QScatterSeries -> made a call to sizeBy/colorBy method -> manually emitted `pointsConfigurationChanged` signal.
      But then, application hangs on calling `QAbstractSeries::attachAxis` after a call to `QXYSeries::colorBy` method has already been made.

      The reason here must be same, because `QAbstractSeries::attachAxis` internally calls `QXYSeries::colorBy` if some color_data is previously set to the scatter series.

      Attachments

        1. test_qt.cpp
          1 kB
          viniyogita
        For Gerrit Dashboard: QTBUG-116647
        # Subject Branch Project Status CR V

        Activity

          People

            e0348803 Miikka Heikkinen
            viniyogita viniyogita
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes