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

QtQuick.Controls: Native Tooltip size on macOS

    XMLWordPrintable

Details

    • macOS
    • e242146ba (dev), 2b031ed7b (6.10), 3c315c86e (6.9)
    • Foundation Sprint 131, Foundation Sprint 132

    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. windows_item_ok.png
          windows_item_ok.png
          11 kB
        2. windows_native_ok.png
          windows_native_ok.png
          8 kB
        3. mac_native_fail.png
          mac_native_fail.png
          12 kB
        4. mac_item_ok.png
          mac_item_ok.png
          8 kB
        For Gerrit Dashboard: QTBUG-130683
        # Subject Branch Project Status CR V

        Activity

          People

            magdalenas Magdalena Stojek
            njeisecke_qtc Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes