Important: Please read the Qt Code of Conduct -

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

  • 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

  • Lifetime Qt Champion

    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 ?

Log in to reply