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. TreeViewDelegate Unable to assign QJSValue to QString
Qt 6.11 is out! See what's new in the release blog

TreeViewDelegate Unable to assign QJSValue to QString

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 248 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.
  • M Offline
    M Offline
    Mihaill
    wrote on last edited by Mihaill
    #1

    Hi!
    My model for TreeView return QJsonObject .
    I use TreeViewDelegate like delegate.
    TreeViewDelegate return error: Unable to assign QJSValue to QString
    But when my model return string, then TreeViewDelegate don't have errors.
    What can I do with TreeViewDelegate? Maybe need make role in model for TreeViewDelegate?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mihaill
      wrote on last edited by
      #2

      TreeViewDelegate use model.display
      This help me

      contentItem: Item{}
      
      1 Reply Last reply
      0
      • M Mihaill has marked this topic as solved on

      • Login

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