simulating a calculator using Qt

how to implement the suareroot button in the calculator?

Page 1 of 1

1 Replies - 5188 Views - Last Post: 01 August 2010 - 09:38 AM Rate Topic: **--- 1 Votes

#1 Shashank S Bayari   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-August 10

simulating a calculator using Qt

Posted 01 August 2010 - 09:27 AM

i have used an LcdNumber display in my calculator,but dont know to implement the squareroot button in it using a QPushButton..
requesting ur help on this
with regards
Shashank
Is This A Good Question/Topic? 0
  • +

Replies To: simulating a calculator using Qt

#2 Salem_c   User is offline

  • void main'ers are DOOMED
  • member icon

Reputation: 2555
  • View blog
  • Posts: 4,739
  • Joined: 30-May 10

Re: simulating a calculator using Qt

Posted 01 August 2010 - 09:38 AM

So can we assume that you've managed to use a button to implement say "addition"?

If so, then all you seem to need is that sqrt() is a function in math.h.


Or is it "how do I draw a square-root symbol on a button" ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1