#include <QApplication>
#include <QFontDialog>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
{
bool ok;
QFont tmp;
QWidget* parent = nullptr;
auto font = QFontDialog::getFont(
&ok
, tmp
, parent
, QStringLiteral("Title")
, QFontDialog::MonospacedFonts | QFontDialog::DontUseNativeDialog
);
}
return 0;
}
#include <QApplication>
#include <QFontDialog>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
{
QFontDialog dlg;
dlg.setOptions(QFontDialog::MonospacedFonts | QFontDialog::DontUseNativeDialog);
qDebug() << dlg.options();
dlg.exec();
}
return 0;
}
Note that the font filtering options might not be supported on some platforms (e.g. Mac). They are always supported by the non native dialog (used on Windows or Linux).
dialog. setOption(QFontDialog::MonospacedFonts, true);
dialog. setOption(QFontDialog::DontUseNativeDialog, true);
Извращаться, так извращаться - https://code.visualstudio.com/docs/editor/vscode-web
в GitLab есть встроенная IDE
Есть ли в SelfHosted версии(https://about.gitlab.com/install/) редактор не знаю