February 28, 2011

Revu Revu
Lab Rat
77 posts

DialPad

Page  
1

How to have a a virtual keyboard with qt?

 Signature 

Every fall is to raise higher than Before.

18 replies

February 28, 2011

QtK QtK
Lab Rat
1140 posts

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

February 28, 2011

Revu Revu
Lab Rat
77 posts

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

 Signature 

Every fall is to raise higher than Before.

February 28, 2011

paulo paulo
Hobby Entomologist
174 posts

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

CLKeyboard Component

February 28, 2011

Revu Revu
Lab Rat
77 posts

@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

 Signature 

Every fall is to raise higher than Before.

February 28, 2011

Andre Andre
Area 51 Engineer
6031 posts

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.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

February 28, 2011

Revu Revu
Lab Rat
77 posts

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.

 Signature 

Every fall is to raise higher than Before.

February 28, 2011

Andre Andre
Area 51 Engineer
6031 posts

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

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

February 28, 2011

Revu Revu
Lab Rat
77 posts

@Andre:Thank You I will check it out.

 Signature 

Every fall is to raise higher than Before.

March 1, 2011

Revu Revu
Lab Rat
77 posts

Sorry I could not do that..
:(

 Signature 

Every fall is to raise higher than Before.

March 1, 2011

Andre Andre
Area 51 Engineer
6031 posts

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

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

March 1, 2011

Revu Revu
Lab Rat
77 posts

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?

 Signature 

Every fall is to raise higher than Before.

March 1, 2011

Andre Andre
Area 51 Engineer
6031 posts

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?

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

March 1, 2011

Revu Revu
Lab Rat
77 posts

Thank You

 Signature 

Every fall is to raise higher than Before.

March 1, 2011

Volker Volker
Robot Herder
5428 posts
Revu wrote:
@Andre:Thank you for your support but,one request please be polite to me.

You’re wasting peoples time with comments like this:

Sorry I could not do that.. :(

So, step back and think about yourself before crying!

March 2, 2011

Revu Revu
Lab Rat
77 posts

Here is the code to create a button with the digits(found in calculator example)

  1.  for (int i = 0; i < NumDigitButtons; ++i) {
  2.          digitButtons[i] = createButton(QString::number(i), SLOT(digitClicked()));
  3.      }

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?

 Signature 

Every fall is to raise higher than Before.

Page  
1

  ‹‹ Test deploying something to a Symbian^3 phone sans app trk      Synchronization property of an QOrganizerItem? ››

You must log in to post a reply. Not a member yet? Register here!