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

Switching theme light and Dark Label cuts off

    XMLWordPrintable

Details

    • macOS

    Description

      Attached tiny example with Label when runs and after that if you switch OS theme Dark/light this cuts some initial text.

      import QtQuick
      import QtQuick.Controls
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Label {
              text: "<p><strong>Mount Shasta </strong><span style='color:#000000;'>is a peak in California's&nbsp;</span>Cascade Range range, It ranks <span style='color:#dc143c;'><strong>#6&nbsp;</strong></span><span style='color:rgb(0,0,0);'><strong>&nbsp;</strong>in the list of California fourteeners.</span><br /><br /><span style='color:rgb(0,0,0);'>The summit is&nbsp;</span><span style='color:#0000cd;'><strong>14,179&nbsp;</strong></span><span style='color:#000000;'>feet high (&nbsp;</span>4,322 meters), and has a prominence of&nbsp;9,832 feet (&nbsp;2,997 meters).<br /><a href='http://en.wikipedia.org/wiki/File:Shasta_from_south.jpg' target='_blank' rel='nofollow ugc noopener noreferrer'>Photo credit</a></p>"
              textFormat: TextEdit.RichText
              anchors {
                  fill: parent
                  centerIn: parent
              }
              wrapMode: TextEdit.Wrap
          }
      }
      

      Attachments

        1. darkLightBug.gif
          darkLightBug.gif
          242 kB
        2. qtbug135812.zip
          241 kB
        3. LabelBug.zip
          242 kB
        4. Screen Recording 2025-06-03 at 4.17.08 PM.mov
          22.59 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            anmaatta Antti Määttä
            irfan.omair@digia.com Irfan Omair
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes