QButtonGroup ::button returns 0 in your example leading to a null pointer access exception. ... objects->addButton(tempLed); ... If you change the code into
確定! 回上一頁