本文整理汇总了C++中MultiLayer::showMaximized方法的典型用法代码示例。如果您正苦于以下问题:C++ MultiLayer::showMaximized方法的具体用法?C++ MultiLayer::showMaximized怎么用?C++ MultiLayer::showMaximized使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MultiLayer
的用法示例。
在下文中一共展示了MultiLayer::showMaximized方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: output
void FFT::output(QList<Column *> columns) {
ApplicationWindow *app = (ApplicationWindow *)parent();
QString tableName = app->generateUniqueName(objectName());
Table *t = app->newHiddenTable(tableName, d_explanation, columns);
MultiLayer *ml = app->multilayerPlot(
t, QStringList() << tableName + "_" + tr("Amplitude"), 0);
if (!ml) return;
Graph *g = ml->activeGraph();
if (g) {
g->setCurvePen(0, QPen(ColorBox::color(d_curveColorIndex), 1));
Plot *plot = g->plotWidget();
plot->setTitle(QString());
if (!d_inverse)
plot->setAxisTitle(QwtPlot::xBottom,
tr("Frequency") + " (" + tr("Hz") + ")");
else
plot->setAxisTitle(QwtPlot::xBottom, tr("Time") + +" (" + tr("s") + ")");
plot->setAxisTitle(QwtPlot::yLeft, tr("Amplitude"));
plot->replot();
}
ml->showMaximized();
}
示例2: output
void FFT::output(const QString &text)
{
ApplicationWindow *app = (ApplicationWindow *)parent();
QString tableName = app->generateUniqueName(QString(name()));
Table *t = app->newHiddenTable(tableName, d_explanation, d_n, 5, text);
MultiLayer *ml = app->multilayerPlot(t, QStringList() << tableName + "_" + tr("Amplitude"), 0);
if (!ml)
return;
Graph* g = ml->activeGraph();
if ( g )
{
Plot* plot = g->plotWidget();
plot->setTitle(QString());
if (!d_inverse)
plot->setAxisTitle(QwtPlot::xBottom, tr("Frequency") + " (" + tr("Hz") + ")");
else
plot->setAxisTitle(QwtPlot::xBottom, tr("Time") + + " (" + tr("s") + ")");
plot->setAxisTitle(QwtPlot::yLeft, tr("Amplitude"));
plot->replot();
}
ml->showMaximized();
}