We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Multiple TextFields

asked 2019-11-25 14:26:41 +0300

bauidch gravatar image

In the People App(Called "Kontakte" in german) you can add multipe Numbers. I'm guessing this phone number filed is a TextFiled in QML.

image description

Now I would like to do this also in my app. Does anyone have an idea where I can find it in the SailfishOS code? Or have someone an example to handel this?

Thank you very much for your answers.

edit retag flag offensive close delete

Comments

1

I suggest you maybe also ask the question over at TMO: https://talk.maemo.org/showthread.php?t=100817

Nova ( 2019-11-25 14:48:04 +0300 )edit
1

Is the Text input validationparagraph what's your looking for ? https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-textfield.html/

orangecat ( 2019-11-25 15:36:36 +0300 )edit

@bauidch Are you asking for how to add multiple TextFields?

Tanghus ( 2019-11-25 15:58:18 +0300 )edit

@Tanghus Yes, like the screenshot, with multiple telephone numbers.

bauidch ( 2019-11-25 16:13:21 +0300 )edit
1

Not exactly telephone numbers, but I do it by maintaining a model reading from Local Storage. https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/TimersDialog.qml

Tanghus ( 2019-11-25 17:37:53 +0300 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2019-11-25 16:36:30 +0300

Spam Hunter gravatar image

updated 2019-11-25 16:37:03 +0300

The page shown in your image is here;

/usr/lib/qt5/qml/Sailfish/Contacts/ContactEditorDialog.qml
edit flag offensive delete publish link more

Comments

1

Thanks for this.

bauidch ( 2019-11-26 09:15:57 +0300 )edit
0

answered 2019-11-26 11:31:16 +0300

bauidch gravatar image

updated 2019-11-26 11:31:33 +0300

A good Option is https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/TimersDialog.qml

Thanks @Tanghus

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2019-11-25 14:26:41 +0300

Seen: 288 times

Last updated: Nov 26 '19