3Q了,QT当中有现成的排序函数吗,就是我传个list进去,输出最大值或者最小?
追答有的。QList没试过。不过像那些QTreeView和QTableView这些是可以用QSortFilterProxyModel这个来排序的。
追问哥们还有个问题请教下
QwtPlotCurve *curve = new QwtPlotCurve();
QPolygonF points;
points attach(ui->qwtPlot);
ui->qwtPlot->replot();
这个为啥画不出来点位图呢
应该是刷新的问题,你去void paintEvent (QPaintEvent *);里画一下看看。