PDA

View Full Version : Signal currentChanged() is not emitted on QTabWidget?



invictus
27th April 2008, 22:36
Hi

I had to rewrite this thread some because I found out more about the problem and it was a quite different problem then I though.

When I create the first tab in a QTabWidget the new tab will ofcourse get focus, but the currentChanged(int) signal is not emitted although the current HAS changed. Any thoughts on this?

coderbob
29th April 2008, 12:12
QTabWidget::currentIndex() is -1 with no tabs and is set to 0 with the first tab.

My guess without looking at the code is Trolltech overlooked that situation or has some rational as to why the first addition does not trigger the signal.

Bob