I'm using C++ with Qt. I have this problem. I have QLineBox (lineBox) and QButtonGroup (buttonGroup) with buttons from type QPushButton. When I press enter on lineBox, signal buttonClicked is emitted for buttonGroup.
lineBox is in QGraphicView. This QGraphicView is in same layout as buttonGroup. I don't want to emit clickButton when press enter. Any Ideas why this happened?
There is a little difference between my question and this one: How to make a QPushButton pressable for enter key?. It is in initialization of autoDefault property.