27class Help :
public QTextEdit {
33 explicit Help(QWidget *parent =
nullptr) : QTextEdit(parent) {
34 QFile helpFile(
":res/help.md");
35 if (!helpFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
36 qDebug(
"help file could not be opened");
40 QTextStream helpTextStream(&helpFile);
41 QString helpText = helpTextStream.readAll();
44 this->setReadOnly(
true);
45 this->setMarkdown(helpText);
46 this->setWindowTitle(tr(
"Help"));
A widget which provides users with information about the various views and controls available in the ...
Help(QWidget *parent=nullptr)
Creates a new instance of the Help class.