I am trying to align the text inside a QTextEdit.
At bound the action menu to the setAlignment() slot of QTextEdit.
But at runtime, besides the fact that no alignment takes place, I got the errors:
Object::connect: No such slot QTextEdit::setAlignment(Qt::AlignRight)
and so on.
The signla/slot binding is:
connect(act_alignright, SIGNAL(triggered(bool)), textEdit,SLOT(setAlignment(Qt::AlignRight)));
Any reply will be very appreciated
Bookmarks