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

Documentation - HorizontalHeaderView textRole & custom delegate

XMLWordPrintable

      Documentation is not very clear about the textRole & custom Delegate.

      If we define the custom delegate, text role is not applicable.

      Explicit mention of the above statement will help the developers.

      Code Snippet

      HorizontalHeaderView { 
      id: horizontalHeader 
       width: parent.width 
       height: 100 
       delegate:del2 
      textRole: "fone_1" 
       model : myModel 
       columnSpacing: 2 
       rowSpacing: 2 
      } 
      Component{ 
      id : del2 
      Rectangle{ implicitWidth: horizontalHeader.width/4; 
      implicitHeight: 50 width: 200;height: 50;color: "blue"; 
       Text { text : fone_1 } 
      } 

       

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

            dheerendra Dheerendra Purohit
            dheerendra Dheerendra Purohit
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes