QTextCursor ha;ha = text->textCursor();if (text->fontWeight() == 75) text->setFontWeight(50);else text->setFontWeight(75);