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

QTest::mouseClick in a QtableWidget cell does not cause a cellClicked signal.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P2: Important P2: Important
    • None
    • 4.6.0
    • Testing: qtestlib
    • None
    • XP 64 bit. Using VS 2008.

      The following code:

      QTest::mouseClick(tw, Qt::LeftButton, Qt::NoModifier, QPoint(point.x() + 1, point.y() + 1), 1000);

      is performed in a cell of a table widget.

      There is a connection:

      connect( cardDetailsTableWidget, SIGNAL( cellClicked ( int , int ) ), this, SLOT( cardDetailsTableWidget_cellClicked ( int , int ) ) );

      the signal is caught in normal running, but QTest::mouseClick does not emit a signal (or at least the cardDetailsTableWidget_cellClicked is never called.

        1. main.cpp
          3 kB
          Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead)
        2. twtest.zip
          4 kB
          Tony Churchill
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            paeglis Gatis Paeglis
            tc42 Tony Churchill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes