Home > Mobile >  Using the Model/View display conditions selected data, is not in conformity with the conditions acco
Using the Model/View display conditions selected data, is not in conformity with the conditions acco

Time:04-28

RT, I used the Model/View display data, the Model of data method by judging whether the display profession data, as shown in the figure below:
//Refuse to show track data 
if ( ! Data - & gt; Is_show_track ()) {
Return QVariant ();
}

When the data of flag to false, direct return QVariant variables,
After I choose according to conditions, the data block is not in conformity with the conditions, but, according to line has also been occupied want to remove these lines. What should I do?

Figure 1: read the file, display all data



Figure 2: after selecting conditions, according to qualified data

CodePudding user response:

Solve, knot stick,
  •  Tags:  
  • Qt
  • Related