Advertisement
Guest User

Untitled

a guest
Mar 28th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.52 KB | None | 0 0
  1. // Works:
  2.   Error {
  3.     id: error
  4.     anchors.top: parent.top
  5.     width: parent.width
  6.     errorModel: sendErrorModel
  7.   }
  8.   Connections {
  9.     target: error.errorModel
  10.     onDataChanged: {
  11.       error.height = (error.errorModel.rowCount() * 20)
  12.     }
  13.   }
  14. // Doesn't work:
  15.   Error {
  16.     id: error
  17.     anchors.top: parent.top
  18.     width: parent.width
  19.     errorModel: sendErrorModel
  20.     Connections {
  21.       target: errorModel
  22.       onDataChanged: {
  23.         height = (errorModel.rowCount() * 20)
  24.       }
  25.     }
  26.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement