Active Topics

 


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#51
QNetworkRequest for network stuff, and QRegExp for parsing reply
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Posts: 2 | Thanked: 2 times | Joined on Nov 2019 @ Switzerland
#52
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
 

The Following User Says Thank You to bauidch For This Useful Post:
Posts: 2 | Thanked: 2 times | Joined on Nov 2019 @ Switzerland
#53
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/
 

The Following User Says Thank You to bauidch For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#54
You're not a man of many words, are you? [] 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
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 

The Following 2 Users Say Thank You to rob_kouw For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#55
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
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 8 Users Say Thank You to coderus For This Useful Post:
Posts: 55 | Thanked: 206 times | Joined on Mar 2019
#56
Originally Posted by coderus View Post
I'd like to teach to code, not write code instead
... ...
 

The Following 2 Users Say Thank You to BGK For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#57
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?
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 

The Following User Says Thank You to rob_kouw For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#58
why to initialize from one place and fill with data from another?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#59
Originally Posted by coderus View Post
why to initialize from one place and fill with data from another?
I have no clue how to get the data from the Downloader to the QML window that will show the photo, and that will handle all the UI.
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 

The Following User Says Thank You to rob_kouw For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#60
Save downloaded data as file and pass path to this file to qml
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:21.