[Qt-interest] Best way to add filter to data

Dan Alcantra dalcantra at yahoo.com
Sun Feb 27 02:18:16 CET 2011


Hi

I have many table widgets each with their live data feed that adds rows, and 
each with its own schema such as "name, time, value1,value2,..."  Under each 
table I have a text window that I want to allow the user to enter simple 
algebraic expressions to filter out data they do not want.  For instance a user 
might type in "if (name == sensorA)" or something like "if (value1< 10 && 
value2  > 100".

Rather then create my own interpretor for the algebra I wanted to use Qt 
Script.   I know Qt well enough but how to interface with Qt Script is the 
question.  Or should I use something else like Perl, or maybe there is a C++ 
library that allows for simple algebra evaluations.  Has anyone done something 
like this ?  Any suggestions as to how to start is very much appreciated.

-dan



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


More information about the Qt-interest-old mailing list