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

Missing geometriesChanged signal in QHeaderView class while resizing the object.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.12.0 Alpha
    • 4.7.4, 5.1.1
    • Widgets: Itemviews
    • None
    • Test Run under Linux platform
    • c782ed3c48b31dc38b728947270df3fc3f3a7626

    Description

      I have used the FreezeTableWidget case sample As i was needing the same feature.
      While debugging my usage, i found a case where initial allignment of the 2nd table is incorrect. After analysis i found that:

      • main table is having vertical header.
      • this vertical header is resized at some point during initialization
      • No geometriesChanged() signal is emitted while the size is altered.

      I have checked in re-implemented API bool QHeaderView::viewportEvent(QEvent *e), and confirm that under this circompstance, the signal is missing.

      To verify i have build special derived version of QHeaderView that emit the signal. My display get ok.

      I attached a screenshot. I can be seen some alignment error on the 1st column (due to missed resize operation).
      I also attach an updataed (improved)code for the Qt example that perform better.

      Attachments

        1. Capture.PNG
          Capture.PNG
          36 kB
        2. freezetablewidget.cpp
          8 kB
        3. freezetablewidget.h
          3 kB

        Activity

          People

            chehrlic Christian Ehrlicher
            toolinfo stephane petithomme
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: