PDA

View Full Version : complex calculations with qt



gt.beta2
5th February 2009, 19:16
Hello again!
If i want to use the data entered in a series of lineedits to perform some kind o "complex" calculations what is there for me?

The C++ stuff
Something that qt offers that i don't know yet ;)

Just asking before starting the wrong way.
Thanks

wysota
5th February 2009, 19:45
QtConcurrent maybe? It depends what kind of calculations we are talking about.

gt.beta2
5th February 2009, 21:16
Not this "complex" :)
I will start with basic arithmetics.
By the way ... in C++ when i want to round a number to an integer i use something like:

double x = 2.7;
int y = x+ 0.5;
In this kind of situations we still have to use some C++ background to solve some specific problems, right?

wysota
5th February 2009, 23:40
Qt is not a programming language, it is a set of C++ libraries, so whatever you do with Qt, you still use C++. By the way, there is qRound() :)

gt.beta2
6th February 2009, 10:47
Right :rolleyes:

<QtGlobal> - Global Qt Declarations (http://doc.trolltech.com/4.3/qtglobal.html)

I better take some time browsing all the classes before i make any more inocent questions like this :o

wysota
7th February 2009, 23:55
That's ok, don't worry. The forum is for asking questions. Of course I strongly encourage to reading the docs more often :)