Results 1 to 6 of 6

Thread: complex calculations with qt

  1. #1
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default complex calculations with qt

    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?
    1. The C++ stuff
    2. Something that qt offers that i don't know yet

    Just asking before starting the wrong way.
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: complex calculations with qt

    QtConcurrent maybe? It depends what kind of calculations we are talking about.

  3. The following user says thank you to wysota for this useful post:

    gt.beta2 (5th February 2009)

  4. #3
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: complex calculations with qt

    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:
    Qt Code:
    1. double x = 2.7;
    2. int y = x+ 0.5;
    To copy to clipboard, switch view to plain text mode 
    In this kind of situations we still have to use some C++ background to solve some specific problems, right?

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: complex calculations with qt

    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()

  6. #5
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: complex calculations with qt

    Right

    <QtGlobal> - Global Qt Declarations

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

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: complex calculations with qt

    That's ok, don't worry. The forum is for asking questions. Of course I strongly encourage to reading the docs more often

Similar Threads

  1. Complex button contents
    By spraff in forum Qt Programming
    Replies: 3
    Last Post: 11th November 2008, 15:17
  2. Complex QCompleter
    By Amouse in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2008, 22:39
  3. Complex Numbers
    By Max Yaffe in forum Qt Programming
    Replies: 2
    Last Post: 24th May 2007, 17:40
  4. casting complex widget pointers
    By TheKedge in forum Qt Programming
    Replies: 4
    Last Post: 8th February 2007, 18:52
  5. QT4 layout of complex dialog is very slow
    By cboles in forum Qt Programming
    Replies: 15
    Last Post: 28th April 2006, 19:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.