[Qt-interest] QStackedWidget showing two pages
Steven Doerfler
sgd-qt at lugaru.com
Sat May 29 21:31:39 CEST 2010
I've got a QStackedWidget in a part of my main window . Each of the
pages it displays contains a half-dozen widgets. Another part of my
main window has a list of items. Selecting an item from the list calls
QStackedWidget::setCurrentWidget to make the appropriate set of widgets
appear, for that type of item.
A tester reports that sometimes two of the QStackedWidget's pages appear
at the same time. I haven't been able to reproduce this, but I've seen
screen shots.
What could cause this?
Is it safe to enable or disable a widget on a page QStackedWidget isn't
currently showing (i.e. a hidden page) or might that cause the page to
become visible sometimes?
Is it possible that a user could click on the list of items to switch
the QStackedWidget from page 1 to page 2, then click on a UI element on
page 1 before my program can switch? Might getting the focus make page
1's widgets visible again after QStackedWidget has hidden them? (If so,
is there a good way to prevent that?)
Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100529/2b6103b6/attachment.html
More information about the Qt-interest-old
mailing list