void SessionDispatcher::show_font_dialog() {
QFontDialog *dialog = new QFontDialog;
bool ok;
QFont font = QFontDialog::getFont(&ok, QFont(“Times”, 12),dialog);
dialog->setFont(font);
qDebug()<<font.key();
dialog->show();
}
void SessionDispatcher::show_color_dialog() {
QColorDialog *dialog = new QColorDialog;
QColor color;
color = QColorDialog::getColor(Qt::green, dialog, “Select Color”, QColorDialog :: DontUseNativeDialog);
dialog->setPalette(QPalette(color));
dialog->show();
}