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
          8 kB
          Nils Jeisecke
        2. mac_native_fail.png
          12 kB
          Nils Jeisecke
        3. windows_item_ok.png
          11 kB
          Nils Jeisecke
        4. windows_native_ok.png
          8 kB
          Nils Jeisecke
        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