![]() |
Re: Help me to code for Sailfish OS
QNetworkRequest for network stuff, and QRegExp for parsing reply
|
Multiple TexFields
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.
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? See the orginal Question: https://together.jolla.com/question/...comment-217726 |
Re: Help me to code for Sailfish OS
Hey Guys
I want to add dynamic TextFields to my app, like the people app for Jolla. Does anyone have an idea where I can find it in the SailfishOS code? Or have someone an example to handel this? See the orginal Question here: https://together.jolla.com/question/...le-textfields/ |
Re: Help me to code for Sailfish OS
You're not a man of many words, are you? [:D] But thanks, I think I found the way to start thanks to your guidance.
I would like to find out how to store files, probably in .local. With that I think it will be easier to debug. At least now I don't know how to check whether my RegExps lead anywhere. Then I think I will make a QJsonArray of 10 QJsonObjects filled with information of the photo (jpg, title, caption, source). This QJsonArray would be handed to the QML page. If so, how. If not, what then? My GitHub repo, still very premature: https://github.com/cow-n-berg/harbour-news-photos |
Re: Help me to code for Sailfish OS
I'd like to teach to code, not write code instead)
QJsonArray/QJsonObject can be handled natively as Object in QML For storing location check QStandardPaths class |
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
Do you have an example on how to initialize a QJsonArray in the QML code, so I can fill it up with QJsonObjects in the C++ code?
|
Re: Help me to code for Sailfish OS
why to initialize from one place and fill with data from another?
|
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
Save downloaded data as file and pass path to this file to qml
|
All times are GMT. The time now is 16:32. |
vBulletin® Version 3.8.8