Hi -
I used setOn in my qt3 code for setting a qpushbutton but am having a really hard time finding a way to do it in qt4. My code used to look like:
pauseButton->setOn(!getActive());
and I tried
pauseButton->setCheckable(!getActive());
However this causes a crash. GDB provides the following output:
#0 0x00007ffff76a706d in QAbstractButton::setChecked(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Any help/advice is appreciated, as I can't seem to figure out what I am doing wrong.
Bookmarks