Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. 3 views and 1 model

3 views and 1 model

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 3 Posters 1.1k 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.
  • A Offline
    A Offline
    asalotaibi
    wrote on last edited by
    #1

    Hi,

    I tried to create a 3 view (Table,Tree and list) using one model (QStanderdItemModel).
    on table and list views it's work well, but on tree view didn't work.

    I heard about proxy model but unfortunately I can't make it.
    Could you please give me a normal example.

    Thanks.

    Regards.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi asalotaibi!
      Wellcome to devnet.
      "on tree view didn’t work" - how is it?
      here is the example for "proxy model":http://qt-project.org/doc/qt-5.0/qtwidgets/itemviews-customsortfiltermodel.html

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        It should work just fine. Proxy models can be very useful, but let's not get ahead of ourselves and first see what you are really trying to do.

        What did not work exactly?

        1 Reply Last reply
        0

        • Login

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