T
T
Tash1moto2017-03-04 15:32:43
Python
Tash1moto, 2017-03-04 15:32:43

How to make a real-time calculation in a qt table?

Simplified the question for better understanding.
The table has a row of three cells.
It is necessary to show the sum of cells 1 and 2 in cell #3 in real time. those. Similar to excell.
I see a way out, throw an event handler on the cell, if you touch the cell, count the amount and assign it to cell 3.
Maybe there is a built-in feature of qt? Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devalone, 2017-03-04
@Tash1moto

Connect the cell change signal to a slot that will look at what has changed and recalculate, but in general, read "A.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question