wumu
2025-08-13 8f4eb9a829d70a28c1d6dff8baa1034e57878c56
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); // 设置源模型