#pragma once #include #include #include #include #include #include #include #include #include // 为了QCombobox下拉列表添加QRadioButton复选框创建ZxListViewEx class I_PLUGIN_EXPORT ZxListViewEx : public QListWidget { Q_OBJECT public: ZxListViewEx(QWidget* parent, const QString& sCurSel, QStringList *listItemAlls, QComboBox* pComboBox); //返回用户选择项的用户自定义数据 QString getSelectItems(); private slots: // Radio状态改变 void slotRadioChanged(bool); private: // 相关的变量,主要为控制 QComboBox* m_pComboBox; QList m_listRadioButtons; };