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

QtQuick.Controls: Native Tooltip size on macOS

    XMLWordPrintable

Details

    • macOS

    Description

      Looks like the width of a ToolTip native window is slightly too small on macOS, causing a wordwrap. This does not occur on Windows.

      Please see screenshots.

      Reproducer:

      import QtQuick
      import QtQuick.Controls
      
      Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
      
        Button {
          text: "Hover me"
          Component.onCompleted: {
            ToolTip.toolTip.popupType = Popup.Native
          }
      
          ToolTip.visible: hovered
          ToolTip.text: "This is a ToolTip"
        }
      }
      

      Attachments

        1. mac_item_ok.png
          mac_item_ok.png
          8 kB
        2. mac_native_fail.png
          mac_native_fail.png
          12 kB
        3. windows_item_ok.png
          windows_item_ok.png
          11 kB
        4. windows_native_ok.png
          windows_native_ok.png
          8 kB
        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
            njeisecke_qtc Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes