[Qt-interest] Qt Graph (QWT) rescales in Mac OS, but not in Linux

S. Aguinaga sa_jr at yahoo.com
Fri Oct 30 17:17:27 CET 2009


Sounds good, I'll take a look there!
This issue is very odd, and it doesn't make sense!



________________________________
From: Andre Somers <andre at familiesomers.nl>
To: Qt-interest <qt-interest at trolltech.com>
Sent: Tue, October 27, 2009 4:22:32 AM
Subject: Re: [Qt-interest] Qt Graph (QWT) rescales in Mac OS, but not in Linux

S. Aguinaga wrote:
> Hello Fellows,
>
> I have a plot with controls for changing the scale (linear vs log) and 
> for changing the min X and the max X values, then replot.
> But the code only works on Mac OS, and not in Linux!
>
> I start out with: 
>
>     calibPlot->setAxisScaleEngine(QwtPlot::xBottom, new
>     QwtLinearScaleEngine () );
>     calibPlot->replot();
>
>
> Then I call the control buttons: using a function: setupGraphControls();
> In the function I define the controls, and connect them to 
> corresponding SLOTS:
> connect( axisXScale, SIGNAL( activated( const QString &)),
> this, SLOT(xAxisScaleChange( const QString &) ) );
> connect( axisXStart, SIGNAL( textChanged ( const QString & )),
> this, SLOT(xAxisScaleMin( const QString & ) ) );
> connect( axisXEnd, SIGNAL( textChanged( const QString &)),
> this, SLOT(xAxisScaleMax( const QString &) ) );
>
> The slots are:
> void CentralPage::xAxisScaleMin( const QString &xMinVal) 
> { 
>   bool ok; 
>   const bool doReplot = calibPlot->autoReplot(); 
>   calibPlot->setAxisScale(QwtPlot::xBottom, 
> xMinVal.toInt(&ok,10),axisXEnd->text().toInt(&ok,10) );  
>   calibPlot->setAutoReplot( doReplot ); 
>   calibPlot->replot(); }
>   }
>
> In the connection statements, should I be using something else in 
> place of "this" ?  Has anyone else seen this issue, I use qwt-5.2.0.
>
Perhaps you would get better answers at the Qwt mailinglist? It is not a 
part of Qt proper. See http://sourceforge.net/mail/?group_id=13693 for 
the list details.

André

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091030/c5682c77/attachment.html 


More information about the Qt-interest-old mailing list