Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-25492

QStatusBar::showMessage new timeout ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 4.8.3
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            jrray J Robert Ray
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes