QGISプラグイン用の適切なGUIを作成するためにpyQT4.8.3を使用しています
フォームには3つのウィジェットがあります
my_comboBox , my_lineEdit , my_spinBox
comboBoxに3つのエントリがあると仮定します
'combo_first_item' , 'combo_second_item' , 'combo_third_item'
まさに私が欲しいのは;
if 'combo_second_item' is selected, then my_lineEdit toggles state to disabled
if 'combo_third_item' selected, then my_spinBox toggles state to disabled
では、コンボボックスから選択した文字列(またはインデックス値)に基づいて、フォーム内のウィジェットの有効な状態を切り替えるにはどうすればよいですか?
適切な信号->スロットの割り当ては何ですか?QbuttonBoxとは異なり、QcomboBoxはSetDisabledスロットを起動しません
ありがとう。