I am trying to add rich text editing to my application and I cant seem to get it to work. This is just one example but I cant get it to work. Can anyone please tell me what I am missing?
Here is the code that I have so far... this is in the .h
file
private slots:
void newFile();
void open();
bool save();
bool saveAs();
void about();
void documentWasModified();
void bold();
and this is in the .cpp
file... also I have #include <QTextEdit>
void MainWindow::bold()
{
}
along with this down the page a little more
boldAct = new QAction(tr("&Bold"), this);
boldAct->setCheckable(true);
boldAct->setShortcut(QKeySequence::Bold);
boldAct->setStatusTip(tr("Make the text bold"));
connect(boldAct, SIGNAL(triggered()), this, SLOT(bold()));