Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about qtest

Read more about qtest

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - qtest

How to simulate a left click in a (row,column) of a QTableWidget instance?

To do unit tests I need to simulate a left click in a table made by QTableWidget. I can't do it with QTest.mouseClick(Something, Qt.LeftButton). How can I do it? By taking a very simple example: >&...
test-img

servoz

python

pyqt5

qtablewidget

qtest

Votes: 0

Answers: 0

Is it okay to overload functions/methods for QTest unittests in QT5 C++?

Is it safe to overload functions/methods in QTest files? I need the function/method to give a different result during the tests. The test works when I run it but will it cause any issues like so? or i...
test-img

user16551018

c++

qt

unit-testing

qt5

qtest

Votes: 0

Answers: 1

Latest Answer

You can use googlemock to write a mock of your class, as stated in the Qt doc https://doc.qt.io/qt-5/qttest-best-practices-qdoc.html#writing-testable-code
test-img

zobfioul

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved