Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QTreeView similar to Yahoo or Skype

    General and Desktop
    3
    4
    1027
    Loading More Posts
    • 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.
    • Z
      zolidznake last edited by

      Hello,

               is there a way to create a model that accepts photo's on every child item ? thank you in advance .!
      
      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        Yes. If you want it sparkly, though, consider using QML.

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • _
          _rmn last edited by

          Hello!

          Yes, you should define Qt::DecorationRole for your model index.
          Read more: http://qt-project.org/doc/qt-4.8/qt.html#ItemDataRole-enum

          1 Reply Last reply Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            He mentions QTreeView, so he means QtWidgets.

            (Z(:^

            1 Reply Last reply Reply Quote 0
            • First post
              Last post