*** zbenjamin_ is now known as zbenjamin | 02:53 | |
*** llornkcor is now known as ljp | 06:22 | |
Nico[m] | fridl: The second argument of pageStack.push is some context, which you can use as a top level property for your pushed page: https://nheko.im/nheko-reborn/konheko/-/blob/master/qml/pages/MainView.qml#L61 | 08:29 |
---|---|---|
Nico[m] | antranigv: Awesome stuff! | 08:31 |
fridl | Thanks, Nico. Is then this how you access this context then? https://nheko.im/nheko-reborn/konheko/-/blob/25a4e3666484121adaf17a41ed0032d6249a5651/qml/pages/ChatPage.qml#L11 | 08:44 |
Nico[m] | Well, yes, but it could also be a `property string room` | 08:45 |
Nico[m] | In this case I'm just aliasing it to the listview model | 08:45 |
fridl | Yeah, I think I get it. Will play around a little. Thanks! | 08:46 |
Nico[m] | Have fun :3 | 08:54 |
*** frinring_ is now known as frinring | 09:31 | |
Displacer | hello, is bluez 5.55 update planned for new os update? avrcp for 5.54 is broken | 16:10 |
antranigv | Nico[m], thanks! | 16:27 |
antranigv | Folks, is there any documentation regarding devel-su? can I use it as sudo alternative? | 16:27 |
Nico[m] | Yes, it should be somewhat usable as a sudo alternative | 16:28 |
Nico[m] | Regarding wg, did you see https://forum.sailfishos.org/t/wireguard-support/3884 on the forum? | 16:28 |
fridl | I have another question regarding my little app project :-) I got the basic Ideas about how to navigate around and display stuff in qml. Fine so far. Now I want of course to display things differently based on a xml file. I once wrote a parser in Python for that xml format. But the python parser uses urllib3. So I cant use it with "harbour" apps, right? | 16:34 |
Nico[m] | You can bundle urllib3 with your app | 16:35 |
Nico[m] | Or publish on openrepos | 16:35 |
fridl | Is there somehow a useful lib to pars xml in qt? urllib results in a somehow useful structure where you can easily iterate threw elements and search for "subelements". Probably it is not to complex to reimplement the parser if there are some xml tools. | 16:39 |
Nico[m] | https://doc.qt.io/qt-5/qml-qtquick-xmllistmodel-xmllistmodel.html maybe? | 16:40 |
Nico[m] | Depending on what you want to do | 16:40 |
pketo | parsing xml with urllib? | 16:41 |
fridl | I want to check for example this file for a specific 'locRef' and present the according information in a nice way: https://api.avalanche.report/albina/api/bulletins | 16:44 |
fridl | pketo: ok, probably I named it wrong, but it can return a Xml as 'element tree' which is easy to progress. At least for me ;-) | 16:45 |
Nico[m] | Well, Qt has an Xml parser, but no qml api for it, I think | 16:46 |
Nico[m] | Not sure, if it is available in python | 16:46 |
pketo | the element tree api is part of the python standard library | 16:48 |
pketo | I guess urllib3 just feeds the response content through that? | 16:50 |
fridl | Yeah, I think you are right. | 16:51 |
pketo | so if you drop urllib3 and fetch the content with the python standard urllib, then it should be fine, few extra steps but shouldn't be too difficult | 16:53 |
fridl | i'll check that out. Thanks for the Idea and help to both of you! | 16:56 |
antranigv | Nico[m], I just saw it, thanks! will respond there. | 17:06 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!