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

QToolTip too big on second screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.1
    • None
    • Windows

    Description

      Issue:

      Tooltips that are shown on the right screen of my two monitor setup (see attachment) are too large. This was not the case with Qt5.

      Cause:

      In <QTipLabel::updateSize> <QWidgetPrivate::setScreenForPoint> is called to ensure that the sizeHint is correct for the current screen.

      In Qt5 <setScreenForPoint> causes a call to <QWidgetPrivate::updateFont> -> OK.
      In Qt6 this font update is not done which causes the sizeHint to be wrong -> NOT OK.

      I think this difference is caused by the commit "c54a5b83804c00474d141b485b752a7c54169ebf" (Change-Id: Id0099e069d316741bacd8c795c396ccad37be297 , QTBUG-85483).

      Due to the window handle not being forcibly created no immediate screen change is happening, which also means <updateFont> is not called.

       

      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
            roman_schuh Roman Schuh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes