Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Pixelator Example Missing QML Code
Qt 6.11 is out! See what's new in the release blog

Pixelator Example Missing QML Code

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 198 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Puya
    wrote on last edited by
    #1

    Hello,

    Looking at this example:
    https://doc.qt.io/qt-5.12/qtquick-tableview-pixelator-example.html

    I don't see the model actually being used in the delegate. What am I missing? Looking at the QML file I only see the comment //! [pixelcomponent]:
    https://code.woboq.org/qt5/qtdeclarative/examples/quick/tableview/pixelator/main.qml.html

    1 Reply Last reply
    0
    • eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by
      #2

      @Puya The model provides the color information to the delegate:

      readonly property real gray: model.display / 255.0
      

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved