Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. DialPad
Qt 6.11 is out! See what's new in the release blog

DialPad

Scheduled Pinned Locked Moved Mobile and Embedded
19 Posts 6 Posters 8.9k 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.
  • R Offline
    R Offline
    Revu
    wrote on last edited by
    #1

    How to have a a virtual keyboard with qt?

    Every fall is to raise higher than Before.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamalakshantv
      wrote on last edited by
      #2

      which is the platform you are targeting for and which SDK do you use?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Revu
        wrote on last edited by
        #3

        it is for touchscreen

        its on linux platform

        Edit (Andre): merged two messages. Please edit your previous message instead of adding a new one to add information

        Every fall is to raise higher than Before.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          parancibia
          wrote on last edited by
          #4

          If you are using Qt Quick, check the CLKeyboard Component [projects.forum.nokia.com] included on Colibri (Qt Quick COmponent LIBRary)

          !http://realnorth.net/share/ColibryKeyboardDemo.png(CLKeyboard Component)!

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Revu
            wrote on last edited by
            #5

            @Paulo:Am not using it.Am a beginner in Qt so help me out with the tips and tricks that could help me out to create a dialpad.

            Thank you

            Every fall is to raise higher than Before.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              Well... in principle, it is not much more than a grid with some buttons, right? So... perhaps a QGridLayout and a bunch of QPushButtons should get you started?

              If this is not what you're looking for, you should rephrase your question to try to make it clear to us what you're after, what you have tried so far, and what it is exactly that you need help with. Of course, also make clear what device (series) you are targeting.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Revu
                wrote on last edited by
                #7

                I tried using designer and creator with the principle you have given but am confused whether I should connect every button to the lineEdit to display the keypressed or is it fine to use buttongroup?
                Anyway I tried both but to get the data of every key pressed how could I call a single function for that or should I include the line of code to update my lineEdit for everykey pressed?
                Presently am using it on linux platform and later want to cross compile to the required target.

                Please help.

                Edit (Andre): removed superfluous > characters. Please try to construct readable text.

                Every fall is to raise higher than Before.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #8

                  Look into QSignalMapper. It allows you to map argument signals from many sources to a single signal with an argument (like the value the button represents).

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Revu
                    wrote on last edited by
                    #9

                    @Andre:Thank You I will check it out.

                    Every fall is to raise higher than Before.

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Revu
                      wrote on last edited by
                      #10

                      Sorry I could not do that..
                      :(

                      Every fall is to raise higher than Before.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andre
                        wrote on last edited by
                        #11

                        You could not do what exactly? Check out QSignalMapper? And why not? And is this still a problem then, or not?

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          Revu
                          wrote on last edited by
                          #12

                          Using designer form I created a bunch of pushbutton in a grid layout but,to map the signal to the slot again I need to edit the button numbers or match with Ui form.
                          Is there any other simpler way in which I could implement the keyboard?

                          Every fall is to raise higher than Before.

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            andre
                            wrote on last edited by
                            #13

                            There are examples enough to use. Even in Qt there is an example (calculator) that you could leverage. Even the way you do it now is simple enough that you can have this working in under 20 lines of code. How easy do you need it to be?

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              Revu
                              wrote on last edited by
                              #14

                              Thank You

                              Every fall is to raise higher than Before.

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on last edited by
                                #15

                                [quote author="Revu" date="1298978718"]@Andre:Thank you for your support but,one request please be polite to me.
                                [/quote]

                                You're wasting peoples time with comments like this:

                                bq. Sorry I could not do that.. :(

                                So, step back and think about yourself before crying!

                                http://www.catb.org/~esr/faqs/smart-questions.html

                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  Revu
                                  wrote on last edited by
                                  #16

                                  Here is the code to create a button with the digits(found in calculator example)
                                  @ for (int i = 0; i < NumDigitButtons; ++i) {
                                  digitButtons[i] = createButton(QString::number(i), SLOT(digitClicked()));
                                  }
                                  @

                                  to create buttons with alphabets,I tried using QString::QChar ch in place of QString::number(i).Is that right way to proceed further or any other idea?

                                  Every fall is to raise higher than Before.

                                  1 Reply Last reply
                                  0
                                  • Q Offline
                                    Q Offline
                                    QbelcorT
                                    wrote on last edited by
                                    #17

                                    Hi, I posted a reply to a similar question in the Qt Center, see this "link":http://www.qtcentre.org/threads/31501-Making-a-KeyBoard-into-LCD-connected-with-the-ARM-board.how-can-i?p=149618&highlight=#post149618. I am using QGraphicsView with QGraphicsItems.

                                    Cory Bellamy

                                    1 Reply Last reply
                                    0
                                    • R Offline
                                      R Offline
                                      Revu
                                      wrote on last edited by
                                      #18

                                      @QbelcorT:Thank you for that useful link.Can you provide me the source code for the same so that I can understand clearly about the class definition.

                                      Every fall is to raise higher than Before.

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        Revu
                                        wrote on last edited by
                                        #19

                                        I made some modifications to the mainform.ui in the inputpanel example given qt4.The problem is that on lineEdit when I click the numberpad appears and it vanishes within a second.Please help me in this regard.

                                        Every fall is to raise higher than Before.

                                        1 Reply Last reply
                                        0

                                        • Login

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