Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Scientific Calculator application in Qt

Scientific Calculator application in Qt

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gsgoodguy
    wrote on last edited by
    #1

    Hi All,

    Iam developing scientific calculator.

    I want to know how to handle my calculator to get input from my keyboard, including Ctrl+C and Ctrl+V also just like in windows calculator.

    ThankQ

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peppy
      wrote on last edited by
      #2

      handle? QKeySequence() class. To work with that use QAction() class as in menu (look for example in MainWindow/Menu Example)...

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        You can use it , for example :

        @
        void MainWindow::on_actionCopy_triggered()
        {
        ui->textEdit->copy();
        }
        @

        [EDIT: code formatting, please wrap in @-tags, Volker]

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wakaskhookhar
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved