Hi,
My app is crashing when i set the QSortFilterProxyModel in the combo box.
below is the code snippet that i use to set the model to the comboBox
m_TxPowerProxyModel->setDynamicSortFilter(true);
m_TxPowerProxyModel->setSourceModel(m_Model);
m_Ui.txPowerCombo->setModel(m_TxPowerProxyModel);
m_Ui.txPowerCombo->setModelColumn(DevicesModel::TX_POWER);
m_TxPowerProxyModel->SetModelSearchStr(m_BandProxyModel->data(index).toString());
m_TxPowerProxyModel->setDynamicSortFilter(true);
m_TxPowerProxyModel->setSourceModel(m_Model);
m_Ui.txPowerCombo->setModel(m_TxPowerProxyModel);
m_Ui.txPowerCombo->setModelColumn(DevicesModel::TX_POWER);
m_TxPowerProxyModel->SetModelSearchStr(m_BandProxyModel->data(index).toString());
To copy to clipboard, switch view to plain text mode
Please Help......
Regards,
GK
Bookmarks