Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
4.8.1
-
None
-
4ec0baf312ec2b26b1dfbee34a22b2ef7dfeccf1 (4.8)
Description
QStatusBar::showMessage exits early if the new 'message' is the same as the current message. Therefore the following sequence results in the message persisting and the desired timeout ignored:
sb->showMessage("foo", 0)
// ...
sb->showMessage("foo", 100)
Use case: I want to show a message while some processing is happening, and the processing will take an unknown amount of time. If it takes a very brief amount of time, I want the message to be visible for at least 100 ms. If it takes a long time, I want the message to not clear for as long as the processing continues.
Currently, showMessage() returns without creating/adjusting its internal QTimer. It should not exit early and change the internal QTimer to respect the new timeout.