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

[Reg. 5.14->5.15]Resize Widget inside QTableWidget

    XMLWordPrintable

Details

    • Linux/X11, macOS, Windows
    • 91a97187ac385c24344d1d062abe7c9d7611c1c4 (qt/qtbase/6.0) 9d36ee1904114a91a5c08b18ccfb72cd1d33d58f (qt/qtbase/dev) 3cd95e958c3d2d0418442a8539bcd7274ea04f48 (qt/tqtc-qtbase/tqtc/lts-5.15)

    Description

      The following code

       

      #include <QApplication>
      #include <QTableWidget>
      #include <QPushButton>
      int main(int argc, char *argv[])
      {
       QApplication a(argc, argv);
       QTableWidget table;
      table.setRowCount(2);
       table.setColumnCount(3);
       
       QPushButton button("Push me");
      table.setCellWidget(1, 1, &button);
       
       table.show();
      return a.exec();
      }
      
      
      

       generates an unwanted behavior when resizing the column or rows of the TableWidget:

       

      The same strange behavior is present using PySide2.

      The same strange behavior happens if one sets a persistent editor containing a certain widget in a table view.

       

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            pogmat Matteo Poggi
            Votes:
            18 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes