Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTreeView similar to Yahoo or Skype
Forum Updated to NodeBB v4.3 + New Features

QTreeView similar to Yahoo or Skype

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.2k Views 1 Watching
  • 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 Offline
    Z Offline
    zolidznake
    wrote on 10 Dec 2012, 12:36 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 10 Dec 2012, 13:05 last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _rmn
        wrote on 10 Dec 2012, 13:07 last edited by
        #3

        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
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 10 Dec 2012, 13:09 last edited by
          #4

          He mentions QTreeView, so he means QtWidgets.

          (Z(:^

          1 Reply Last reply
          0

          1/4

          10 Dec 2012, 12:36

          • Login

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