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

Switch from Qt5 to Qt6: Bold attribute not rendered

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 6.7.1
    • GUI: Font handling
    • None
    • Windows

      When switching from Qt5 to Qt6, the QLabel bold attribute in the designer ui file is not rendered correctly. In Qt5, the following

      <widget class="QLabel" name="label">
                <property name="font">
                 <font>
                  <pointsize>12</pointsize>
                  <weight>75</weight>
                  <bold>true</bold>
                 </font>
                </property>
                <property name="text">
                 <string>Plot Control</string>
                </property>
               </widget> 

      produces bold text. When used in Qt6, the text is not bold. It turns out that the following line in the ui file needs to be removed for the label to appear bold:

      <weight>75</weight> 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            braunp Patrick Braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes