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

Segmentation fault with Binding on font.bold

XMLWordPrintable

    • Linux/X11
    • d62c216cbd (qt/qtdeclarative/dev) d62c216cbd (qt/tqtc-qtdeclarative/dev) d62c216cbd (qt/tqtc-qtdeclarative/6.3) 8209d04a90 (qt/qtdeclarative/6.2) 8209d04a90 (qt/tqtc-qtdeclarative/6.2)

      The following segfaults if run with "qml".   Since I've never tried using Binding before this might be incorrect code.  But presumably segfault indicates a bug somewhere.

      import QtQuick
      Rectangle {
        id: top; objectName: "top"
        visible:true; width:300; height:300  
        Text {
          id: trtext
          width: 30; height: 30
          text: "1234.56"
          font.bold: true    
          Binding {
            target: trtext.font; property: 'bold'
            value: false; when: width < 30
          }
        }
      }
      
      

      P.S. Something is whacked with pasting code into this bug system – newlines seem to be randomly removed and have to be put back with hand editing

        For Gerrit Dashboard: QTBUG-98367
        # Subject Branch Project Status CR V

            ulherman Ulf Hermann
            jimav Jim Avera
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes