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

Allow wrapping any QWidget into QToolTip using static method in QToolTip API

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None
    • All

    Description

      Public QToolTip API allows showing richtext/HTML in a tooltip. Sometimes richtext is not sufficient and it would be great to have the option to set a completely custom QWidget and show it as a tooltip.

      I know this is possible by setting QWidget's window flag to Qt::ToolTip and showing the widget, but still there is lots of boilerplate and lots of code to make it behave like a normal tooltip. (e.g. time delays when showing up or closing down, automatically closing when mouse moves, closing other currently visible tooltip etc.)

      I believe that extending QToolTip API would allow this. Consider adding static for example method QToolTip::showWidget(pos, widget, ...). I believe it would be very useful.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            vladimir.kraus Vladimir Kraus
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes