All pastes #569018 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-15 23:22 UTC
rendered paste body

  textField = new QTextEdit;
  textField -> resize(500,600);
  fontBox = new QFontComboBox;
  
  connect(textField, SIGNAL(textChanged()), this, SLOT(modifyText())); 
  

...

void qOrganizer::modifyText()
{
 
   cursor = textField->textCursor();
   cursor.movePosition(QTextCursor::Left,QTextCursor::KeepAnchor);
   textField->setCurrentFont(fontBox->currentFont());
   cursor.movePosition(QTextCursor::Right);
};