/srv/irclogs.ubuntu.com/2016/06/12/#ubuntu-app-devel.txt

=== chihchun_afk is now known as chihchun
UmeaboyHi!13:08
Umeaboyhttps://wiki.ubuntu.com/ARM/RootfsFromScratch is out of date.13:09
UmeaboyWhich page should and can I use?13:09
UmeaboyFor 16.04.13:09
=== JanC is now known as Guest71894
=== JanC_ is now known as JanC
mike00hi appdevs. can I get the time and/or the week day in a qmake app?18:25
mike00appdevs: and I want to know how can a qmake app can keep the phone always wake, without switching off the screen, please18:57
c001130Hi, I am starting developping apps for Ubuntu Touch and have a very simple question.19:03
c001130I 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
c001130So, I think my question is: How to add a png file to the app?19:06
Elleomike00: 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: false19:40
Elleomike00: possibly best to set that as screenSaverEnabled: !Qt.application.active19:40
Elleomike00: 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
Elleoc001130: is it a qmlproject or a cmake project?19:42
mike00thanks Elleo19:43
Elleomike00: no problem :)19:43
mike00:)19:43
Elleomike00: also I think all the standard javascript time/date classes should be available to you for doing stuff with the time and date19:44
mike00Elleo: how can I get that values?19:44
Elleomike00: http://www.w3schools.com/jsref/jsref_obj_date.asp19:45
mike00thanks very much Elleo, I'll try as soon as possible ;)19:46
Elleoyou're welcome19:46
c001130Elleo: 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
c001130When I try it with "QML App with Simple UI (cmake)",  I can not even "Add existing files".19:47
c001130Would I require a resource file?19:48
c001130I remember that I wrote an App some months ago and didn't have these problems.19:48
Elleoc001130: 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
Elleoso if you copy them in manually you should be okay19:49
Elleo(outside of qtcreator)19:50
mike00c001130: in a qmake project you have to add the file path to the .pro file19:50
Elleoah, yeah sorry I was thinking of a qmlproject not a qmake project19:50
mike00c001130: when the file says "CONF_FILES += " and a list of about 2 files. you have to add there your files19:51
c001130mike00: I'll try! Give me a sec!"20:07
mike00ok20:07
c001130mike00: 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
mike00I put all my file under CONF_FILES and my app works20:15
mike00I'm not an expert20:15
c001130Okay, I do it the same way then. For me you're expert enough. ;-)20:18
mike00well, I have your same problem until few days ago: I've just discovered this20:23

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!