=== chihchun_afk is now known as chihchun | ||
Umeaboy | Hi! | 13:08 |
---|---|---|
Umeaboy | https://wiki.ubuntu.com/ARM/RootfsFromScratch is out of date. | 13:09 |
Umeaboy | Which page should and can I use? | 13:09 |
Umeaboy | For 16.04. | 13:09 |
=== JanC is now known as Guest71894 | ||
=== JanC_ is now known as JanC | ||
mike00 | hi appdevs. can I get the time and/or the week day in a qmake app? | 18:25 |
mike00 | appdevs: and I want to know how can a qmake app can keep the phone always wake, without switching off the screen, please | 18:57 |
c001130 | Hi, I am starting developping apps for Ubuntu Touch and have a very simple question. | 19:03 |
c001130 | I created a new project "QML App with simple UI" and am trying to show just a simple image. But whatever I do, the image is not found when I try to run the app on my phone. | 19:04 |
c001130 | So, I think my question is: How to add a png file to the app? | 19:06 |
Elleo | mike00: as I understand it you just need to add the keep-screen-on policy to your app armor profile, then use the ScreenSaver element to set screenSaverEnabled: false | 19:40 |
Elleo | mike00: possibly best to set that as screenSaverEnabled: !Qt.application.active | 19:40 |
Elleo | mike00: so that it only disables while your app is active (unlikely to make a difference on the phone, but might make a difference on less confined desktop systems) | 19:41 |
Elleo | c001130: is it a qmlproject or a cmake project? | 19:42 |
mike00 | thanks Elleo | 19:43 |
Elleo | mike00: no problem :) | 19:43 |
mike00 | :) | 19:43 |
Elleo | mike00: also I think all the standard javascript time/date classes should be available to you for doing stuff with the time and date | 19:44 |
mike00 | Elleo: how can I get that values? | 19:44 |
Elleo | mike00: http://www.w3schools.com/jsref/jsref_obj_date.asp | 19:45 |
mike00 | thanks very much Elleo, I'll try as soon as possible ;) | 19:46 |
Elleo | you're welcome | 19:46 |
c001130 | Elleo: I tried both. When I try it with "QML App with Simple UI (qmake)", I can "Add existing files" to my project tree but they are not transfered to the device apparently. | 19:47 |
c001130 | When I try it with "QML App with Simple UI (cmake)", I can not even "Add existing files". | 19:47 |
c001130 | Would I require a resource file? | 19:48 |
c001130 | I remember that I wrote an App some months ago and didn't have these problems. | 19:48 |
Elleo | c001130: I think you just need to add them as part of the project tree, if you're using "Add existing files" I think it'll use a relative to path to wherever they currently exist on the system (which won't be included in the click package) | 19:49 |
Elleo | so if you copy them in manually you should be okay | 19:49 |
Elleo | (outside of qtcreator) | 19:50 |
mike00 | c001130: in a qmake project you have to add the file path to the .pro file | 19:50 |
Elleo | ah, yeah sorry I was thinking of a qmlproject not a qmake project | 19:50 |
mike00 | c001130: when the file says "CONF_FILES += " and a list of about 2 files. you have to add there your files | 19:51 |
c001130 | mike00: I'll try! Give me a sec!" | 20:07 |
mike00 | ok | 20:07 |
c001130 | mike00: It worked. You helped me a lot! Just one detail: Should I use the CONF_FILES list or should I take another list for my images? | 20:14 |
mike00 | I put all my file under CONF_FILES and my app works | 20:15 |
mike00 | I'm not an expert | 20:15 |
c001130 | Okay, I do it the same way then. For me you're expert enough. ;-) | 20:18 |
mike00 | well, I have your same problem until few days ago: I've just discovered this | 20:23 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!