Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
QTable valueChanged problems
I'm having a problem using the signal valueChanged with a QTable
within my main widget.
Whenever the window or widget loses focus it seems that valueChanged is
being emitted, not just when the cell has been edited.
I've used the following connect statement to connect the signal to my
own slot displayRecord().
connect(table, SIGNAL(valueChanged(int, int)), this, SLOT(displayRecord()));
Is there something I've missed somewhere about valueChanged that I can't
use it in this way. It seems to happen every time I swap windows from my app
or swap to another widget on the stack.
Thanks.
maiby help displayRecord(int,int)
a life without programming its alike empty bottle
Oops,
Is OK now, because I was calling editCell on the cell below each new entry
to speed up input, when the window/widget lost focus, the table was
quite reasonably assuming that the cell had been edited as it changed
edit mode.
Doh.