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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. main.cpp
          3 kB
        2. twtest.zip
          4 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes