also i still get the error "invalid use of void expression"
Because code like this
ui->SLineEdit->setFont(font->setBold(false));
ui->SLineEdit->setFont(font->setBold(false));
To copy to clipboard, switch view to plain text mode
makes no sense: font->setBold() is a method that returns 'void', and "setFont()" requires 'const QFont&'.
Modify your font and then assign it to QLineEdits:
font->setBold(true);
font->...
ui->lineEdit->setFont( *font ); //!< if you dont know why its here ...
font->setBold(true);
font->...
ui->lineEdit->setFont( *font ); //!< if you dont know why its here ...
To copy to clipboard, switch view to plain text mode
... read this
Bookmarks