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

Qt Designer: QTableWidget : Horizontal labels are not visible (horizontalHeaderVisible property is not saved correctly) when in page-based container

    XMLWordPrintable

Details

    • 908660847ccd632fbb18f605d387ce806ab1be1e (qt/qttools/dev) c021a6017600888165ab1807836a0965c9e82af5 (qt/qttools/6.1) 3b3516b60998e1e7f551422fe4ec11ed2e7c2a2a (qt/tqtc-qttools/5.15)

    Description

      Concerning the horizontal labels, the .ui file generated doesn't match the QTableWidget properties set in Designer.

      Here is a Designer screenshot : http://www.mirari.fr/bN4S.png
      Here is the application appearance : http://www.mirari.fr/Uq4a.png
      (you can see the first line of data in the table, but not the labels)

      Here is a minimalistic test case which reproduces the problem : http://www.mirari.fr/M5rn

      Result :

      the horizontal labels are not visible

      Expected result :

      the horizontal labels are visible

      Reproductible :

      always

      How to reproduce :

      compile then run the sample code in the link above

      Workaround :

      play randomly with the checkboxes of the QTableWidget properties...

      The labels are not visible, even if I call setHorizontalHeaderLabels(<a QStringList>) manually (look at the constructor of ladderui.cpp in the test case).

      The problem happens with :

      • Debian Jessie (testing), Qt 5.3.2, standard package from the distro, up-to-date

      Note that I got this behaviour in other projects.
      Thanks in advance for your attention.


      Detailed steps to reproduce (Jarek's version):

      1. Open Designer and load QTBUG_49591.ui file.
      2. Switch to Tab 1.
      3. Click on table widget and change the horizontalHeaderVisible property to true.
      4. Switch back to Tab 2.
      5. Save changes and close Designer.
      6. Repeat steps 1 and 2 - the horizontalHeaderVisible is still set to false. Changes from point 3 didn't save properly at step 5.

      Attachments

        1. QTBUG_49591.ui
          2 kB
        2. qtbug49591_diag.diff
          6 kB
        3. qtbug49591_log.txt
          4 kB
        4. qtbug49591_nonworkinghack.diff
          2 kB
        5. qtbug49591.ui
          2 kB
        6. qtbug49591.zip
          2 kB

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              Folco Folco
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: