You are not logged in.

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.

1

Saturday, March 12th 2005, 12:15pm

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.

zlatko

Professional

  • "zlatko" is male

Posts: 728

Location: Ukraine,Lviv

Occupation: programmer

  • Send private message

2

Saturday, March 12th 2005, 1:19pm

maiby help displayRecord(int,int)
a life without programming its alike empty bottle 8)

3

Saturday, March 12th 2005, 1:43pm

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.