我有以下代码在moreButton
哪里QPushButton
。当我切换按钮时,没有任何反应。
它不应该显示或隐藏secondaryGroupBox
andtertiaryGroupBox
吗?
QObject::connect(moreButton, SIGNAL(toggled(bool)), secondaryGroupBox, SLOT(setVisible(bool)));
QObject::connect(moreButton, SIGNAL(toggled(bool)), tertiaryGroupBox, SLOT(setVisible(bool)));