Песочница: различия между версиями
Перейти к навигации
Перейти к поиску
ILobster (обсуждение | вклад) Нет описания правки |
ILobster (обсуждение | вклад) |
||
Строка 13: | Строка 13: | ||
== Подсветка кода == | == Подсветка кода == | ||
<syntaxhighlight line lang="cpp-qt"> | |||
#include <QtGui/QApplication> | |||
#include <QTextCodec> | |||
#include "mainwindow.h" | |||
int main(int argc, char *argv[]) | |||
{ | |||
QApplication a(argc, argv); | |||
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); | |||
MainWindow w; | |||
w.setWindowTitle(QString::fromUtf8("FireFile - передача файлов")); | |||
w.show(); | |||
return a.exec(); | |||
} | } | ||
</ | </syntaxhighlight> | ||
== SVG == | == SVG == |
Версия от 02:28, 20 сентября 2012
Тут можно готовить куличики и строить замки.
Формулы
<math>\int\limits_a^x f\left(\frac{\alpha}{2}\,\right)\,dx</math>
<math>x^2-y=z</math>
<math>e=mc^2</math>
<math>72\cdot\sigma^2-23=\beta_3\cdot\frac{2+2\cdot2}{f^2-g^3}</math>
Подсветка кода
#include <QtGui/QApplication>
#include <QTextCodec>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
MainWindow w;
w.setWindowTitle(QString::fromUtf8("FireFile - передача файлов"));
w.show();
return a.exec();
}