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

QTableWidget selection is buggy when cells contain widgets

    XMLWordPrintable

Details

    Description

      Running the code below, hold down LMB in the left cell, then drag the mouse cursor to the right cell.
      The right cell is now selected, but shouldn't be.

      // --------------------------------------------------------------
      #include <QtGui>

      int main( int argc, char * argv[] )
      {
      QApplication app( argc, argv );
      QTableWidget table( 1, 2 );
      table.setSelectionMode( QAbstractItemView::NoSelection );
      table.setCellWidget( 0, 1, new QCheckBox() );
      table.show();
      return app.exec();
      }
      // --------------------------------------------------------------

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes