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. Model/View: Restrict data in model based on what is clicked on by the user

Model/View: Restrict data in model based on what is clicked on by the user

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 439 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.
  • D Offline
    D Offline
    dc217863
    wrote on last edited by
    #1

    Hi,

    I am a newbie in the Model/View design. As far as I understand, it is expected to separate the Model and the View as much as possible as a design principle. However, I wish to use this to be able to show data that I get from a server. Since I know that I have a LOT of data in total, I would only like to get the data that I need to show to the user. Thus, I would like to only fetch the data that the user requires and wants to see and not the rest.

    AFAIK this seems to go against the Model/View philosophy (telling the model to now fetch data based on user input).

    How can I integrate this functionality using the Model/View approach?

    Thank You

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      No it is not. You'll be using a "rolling window" on your data.

      What kind of view are you going to use ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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