I use to a control tableview, and combined QSqltableModel, QSqltableModel is used to provide database data, the Model=new QSqltableModel (this); The Model - & gt; SetTable (" data "); The Model - & gt; SetEditStrategy (QSqlTableModel: : OnManualSubmit); The Model - & gt; The select (); The UI - & gt; Tableview - & gt; SetModel (Model); The UI - & gt; Tableview - & gt; SetEditTriggers (QAbstractItemView: NoEditTriggers); The UI - & gt; Tableview - & gt; The verticalHeader () - & gt; Hide (); The UI - & gt; Tableview - & gt; SetColumnWidth (0, 50); The UI - & gt; Tableview - & gt; SetSelectionBehavior (QAbstractItemView: SelectRows); The UI - & gt; Tableview - & gt; ScrollToBottom (); Only when the data is greater than 256 to in 256, not the the following data, if use the if (dataModel - & gt; CanFetchMore ()) dataModel - & gt; FetchMore (); Then the data is more than 512, only to the 512th data, not the bottom data, how to solve this problem, thank you
CodePudding user response:
Through cut, did not find efficient way to the landlord to solve the problem?