You are not logged in.

1

Friday, July 8th 2005, 9:34pm

another question ...

(sorry i am a french speaker )

Hello , i have a question :

i want to make a program which ask the name of the user . Then the user enter his name and his name will be stock in a vector.

example:

VINCENT ---> | V | I | N | C | E | N | T |

if the name of the vector is V then V[2] is N


How to do that with qt ??
if you have a code , give it to me .

thank you very much

(see that http://doc.trolltech.com/3.3/qinputdialog.html )

jacek

Master

  • "jacek" is male

Posts: 2,729

Location: Warsaw, Poland

  • Send private message

2

Friday, July 8th 2005, 9:40pm

RE: another question ...

QInputDialog::getText() will return a QString object holding the user's input. You can access individual characters using [] operator.

There's an example how to use QInputDialog::getText() in the docs.

3

Friday, July 8th 2005, 10:21pm

thank you !!!

it's ok now !!


yet another question :)

i want to know the size of the name, how can i do that ??

thank you

jacek

Master

  • "jacek" is male

Posts: 2,729

Location: Warsaw, Poland

  • Send private message

4

Friday, July 8th 2005, 10:24pm

Quoted

Originally posted by learner146
i want to know the size of the name, how can i do that ??

Read QString docs --- everything you need is there.

5

Friday, July 8th 2005, 10:31pm

ok i will do that .

Thank you for the link ...