wumu
2025-08-08 7a29ce102ca45e5b7888e898073d7c1342a7d9e3
getstocklist.cpp
@@ -45,9 +45,9 @@
    // 模型及表格视图
    m_model = new QStandardItemModel(this);
    m_model->setColumnCount(10); // 设置10列
    m_model->setColumnCount(11); // 设置11列
    QStringList labels;
    labels<<"股票名字"<<"股票代号"<<"总市值(亿)"<<"流通市值(亿)"<<"涨跌幅(%)"<<"收盘价"<<"成交额(亿)"<<"成交量(手)"<<"换手率(%)"<<"市盈率";
    labels<<"股票名字"<<"股票代号"<<"总市值(亿)"<<"流通市值(亿)"<<"涨跌幅(%)"<<"收盘价"<<"成交额(亿)"<<"成交量(手)"<<"换手率(%)"<<"市盈率"<<"交易额排名";
    m_model->setHorizontalHeaderLabels(labels); // 设置模型的列标签名
    m_customModel = new CustomSortProxyModel;
    m_customModel->setSourceModel(m_model); // 设置源模型