QString valueString; QPointF closestPoint = sumPlot->closestCurvePoint(pos, &valueString, &timeString, &closestYAxis);if(!closestPoint.isNull()) { QString str = valueString;if(!timeString.isEmpty()) { str += QString(" (%1)").arg(timeString); } txt.setText(str); } RiuSummaryQwt...
QString fileName = rideItem->fileName; QDateTime dateTime = rideItem->dateTime;QDirdir(path);QFileInfofile(fileName);// get current ride statisticscurrent =newRideFileCache(mainWindow, mainWindow->home.absolutePath() +"/"+ fileName);// get aggregates - incase not initialised from date c...
palette.setColor(QPalette::Active, QPalette::WindowText, Qt::blue); palette.setColor(QPalette::Active, QPalette::Base, Qt::white); setPalette(palette); QString text;if(g->selectedText()){ d_target = g->selectedText(); setGeometry(d_target->geometry());autolegend =dynamic_cast<LegendWi...
\return \c TRUE if the specified marker exists */boolQwtPlot::setMarkerLabelText(longkey,constQString &text) { QwtPlotMarker *m;if((m = d_markers->find(key))) { m->setLabelText(text);returnTRUE; }returnFALSE; } 开发者ID:BackupTheBerlios,项目名称:qtiplot-svn,代码行数:16,代码来源:...
QwtText t = QwtText(QString::number(y(i))); t.setColor(d_labels_color); t.setFont(d_labels_font);if(d_white_out_labels) t.setBackgroundBrush(QBrush(Qt::white));elset.setBackgroundBrush(QBrush(Qt::transparent)); m->setLabel(t);intx_axis = xAxis();inty_axis = yAxis(); ...
*/HistogramToolWindow::HistogramToolWindow(QString title,QWidget *parent) : PlotWindow(title, parent) { p_plot->enableAxis(QwtPlot::yRight); QwtText *leftLabel =newQwtText("Frequency", QwtText::PlainText); leftLabel->setColor(Qt::darkCyan); ...
*/HistogramToolWindow::HistogramToolWindow(QString title,QWidget *parent) : PlotWindow(title, parent) { p_plot->enableAxis(QwtPlot::yRight); QwtText *leftLabel =newQwtText("Frequency", QwtText::PlainText); leftLabel->setColor(Qt::darkCyan); ...
示例1: QWidget ▲点赞 9▼ ScopePanel::ScopePanel(constQString& name,double* sample_x,double* sample_y,intnum_samples, QWidget* parent ) : QWidget(parent), name(name), plot(QwtText(name),this) {#ifQWT_VERSION >= 0x60100plot_curve.setPaintAttribute( QwtPlotCurve::PaintAttribute::Filt...
*/HistogramToolWindow::HistogramToolWindow(QString title,QWidget *parent) : PlotWindow(title, parent) { p_plot->enableAxis(QwtPlot::yRight); QwtText *leftLabel =newQwtText("Frequency", QwtText::PlainText); leftLabel->setColor(Qt::darkCyan); ...