Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

QPushButtom very short question

$
0
0
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()));

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>