I have two QPushButtom one is to set text to italic another is to bold
They work fine when I click on either of them and they stay clicked but when I want to click on either of them for the second time so they will unlicked so then set text to not iatlic or not bold , what should I do ?
Italic->setCheckable(true);
Bold->setCheckable(true);
connect(Italic,SIGNAL(clicked()),this,SLOT(setItalic()));
connect(Bold,SIGNAL(clicked()),this,SLOT(setBold()));
connect(Italic,SIGNAL(released()),this,SLOT(setNotItalic()));
connect(Bold,SIGNAL(released()),this,SLOT(setNotBold()));
↧