/srv/irclogs.ubuntu.com/2014/09/07/#ubuntu-app-devel.txt

jdstrandI've asked this before, but is there any sort of tutorial on theming? specifically, adjust the colors?00:14
jdstrand(in a qml app)00:14
jdstrandIe, I want to use the ambient theme as a base, but modify some colors00:14
jdstrandthe theme docs are extremely sparse...00:14
jdstrandreally, the thing I want to disable is this weird highlight behavior on component click. it does't work right for OptionSelector (the option selector has a gray rectangle around it) and it is not veryattractive in my app00:25
jdstrandok, highlightWhenPressed: false in OptionSelector and ListItem.Empty helps some, but OptionSelector still displays weird in its default state00:28
Akiva-ThinkpadEvening all02:03
Akiva-Thinkpadhey all05:07
Akiva-Thinkpadhey all09:32
rpadovanipopey, mhall119, are you around?  I think I found a bug in the store (and implications could be critical)14:15
mhall119rpadovani: if it's a possible security problem, PM me14:36
mhall119otherwise, if it's just a functional bug, go ahead and mention it here14:36
rpadovanimhall119, not sure, I pm you14:36
SturmFlutCan anybody tell me why my pure Qt/C++ app hosted at https://github.com/Sturmflut/cylinder.git won't work on my phone (r231)? The armhf executable is built, the .click package is pushed to the phone and I see the startup screen on the phone, but then the startup screen disappears and nothing happens. I can't find any errors logged anywhere.15:09
rpadovaniSturmFlut, errors are in /home/phablet/.cache/upstart/applicationName15:12
SturmFlutrpadovani: Thanks, I'll have a look15:13
Randy_Oany qml ubuntu sdk people around?15:14
Akiva-ThinkpadRandy_O, sort of?15:15
Akiva-Thinkpaddo you want sdk developers, ie, working on the actual sdk?15:15
Akiva-Thinkpadlike as in, developing THE sdk?15:15
Randy_OAkiva-Thinkpad, Hello again, this one might be easier to answer: Cannot assign to non-existent property "head" and this is on a nexus 415:15
Akiva-Thinkpador do you just want devs?15:15
Akiva-ThinkpadRandy_O, ah15:16
Randy_OAkiva-Thinkpad, no, nothing like that, developing an app, trying to get new header toolbar to work15:16
Akiva-Thinkpadso your item doesnt have a property named "head"15:16
Akiva-Thinkpadah15:16
Akiva-Thinkpadif you want to make custom properties btw15:16
Randy_OAkiva-Thinkpad, it's a property for the toolbar header, but only the newer SDK toolkits support it15:16
Akiva-Thinkpaduse this syntax15:16
Akiva-Thinkpadproperty var myCustomProperty:15:17
Akiva-ThinkpadRandy_O, ah do you have the context page?15:17
Akiva-Thinkpaddocumentation?15:17
* Akiva-Thinkpad assumes this is the Page{} component15:17
Randy_OAkiva-Thinkpad,  http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.Page/15:17
Randy_OAkiva-Thinkpad, it is15:17
Akiva-ThinkpadRandy_O, are your libraries current,15:18
Akiva-Thinkpadie15:18
Akiva-Thinkpadinclude ubuntu.components 1.1?15:18
Akiva-Thinkpadnot 0.115:18
Randy_OAkiva-Thinkpad, they are, I even started over with a new SDK project to get all the new naming's correct15:19
Akiva-Thinkpadinteresting15:19
Akiva-Thinkpadsec15:19
Akiva-Thinkpadi'll try it myself15:19
SturmFlutrpadovani: Okay, I think I found the problem: The executable is part of the click package, it is pushed to the device but it is missing the "execute" bit in the filesystem. I have no idea why. But now I can debug it, thanks.15:20
rpadovaniSturmFlut, yw, if you need anything else, just ask :-)15:20
Akiva-ThinkpadRandy_O, what did you assign to head:?15:21
Akiva-Thinkpadthis looks like a theming property; I've never used it till this point15:22
Randy_OAkiva-Thinkpad, I've got 3 action items that create 2 toolbar buttons15:22
Randy_OAkiva-Thinkpad, but I'm actually only trying to get one to work right now15:22
Akiva-ThinkpadRandy_O, toolbar buttons like NewEvent.qml in the Calendar App?15:23
Akiva-Thinkpadie, check mark and x15:23
Randy_OAkiva-Thinkpad, yep, just like that, but also like the ones on the main toolbar of the calendar app15:25
Akiva-ThinkpadRandy_O, ah15:25
* Akiva-Thinkpad checks the source15:25
Akiva-ThinkpadRandy_O, its not used once in Calendar app15:26
Akiva-ThinkpadI have not checked the other projects, wish I could be more help15:26
Akiva-Thinkpadbut it doesnt look like you need it.15:27
Akiva-ThinkpadRandy_O, Do me a favour; open a question on ask ubuntu and link it to me15:27
Akiva-Thinkpadi'll vote it up and all that jazz15:27
Randy_OAkiva-Thinkpad, cool, it seems like there's 2 of doing this in the documentation, I'll try just using toolbaritems15:28
Randy_OAkiva-Thinkpad, will do15:28
Randy_OAkiva-Thinkpad, http://askubuntu.com/questions/511455/why-am-i-getting-the-error-cannot-assign-to-non-existent-property-head15:29
Randy_OAkiva-Thinkpad, should I create another one?15:29
Akiva-Thinkpadheh15:29
Akiva-Thinkpadfunny15:29
Akiva-Thinkpadthat was unlikely15:29
Randy_OI dont like the answer though15:30
Randy_Odoesn't help me much15:30
Akiva-Thinkpadyah; just ask, "What does the head: property do on Page{} in qml?"15:30
Randy_Oin a new question?15:31
Akiva-Thinkpadyah15:34
Randy_Ook15:34
Akiva-Thinkpadthanks15:34
Randy_OAkiva-Thinkpad, http://askubuntu.com/questions/521178/what-does-the-head-property-do-on-page-in-qml15:41
Akiva-Thinkpadupvoted15:41
Akiva-Thinkpad:)15:41
Randy_OAkiva-Thinkpad, awesome, thanks!15:41
Akiva-Thinkpadnp; makes development easier15:42
Akiva-Thinkpadwhat app are you working on btw?15:42
Randy_OAkiva-Thinkpad,  delivery tracker https://launchpad.net/deliverytracker15:42
SturmFlutrpadovani: Okay, my fault, I used the wrong CMake install command for the executable. Thanks *a lot*.15:43
rpadovaniSturmFlut, you're welcome :-) I wait to see your app on the store!15:43
vitimitiIs a QML app always limited to its cache folder when downloading and saving files even if I'm using C++ for such functions? Should I use Qt instead?16:07
Akiva-Thinkpadvitimiti, mhall119 was asking something similar to that. He probably has an answer16:09
Akiva-Thinkpadthough I doubt hes working today16:09
vitimitiI want to use youtube-dl in a QML GUI (even if it's just for me), and apart from not being able to find a directory picker, I can't see how to download to any folder. So I was thinking about using C++ for those two things, but I don't know if it'd be limited even with C++16:11
Akiva-Thinkpadvitimiti, ah yah you will need some qt/c++ for that16:12
Akiva-Thinkpadvitimiti, you can't run afaik shell commands from qml16:12
vitimitiSo better of with Qt and make it look kind of like QML for Ubuntu, uh?16:12
Akiva-Thinkpadvitimiti, nope16:12
Akiva-Thinkpadvitimiti, have you started the app yet?16:13
vitimitiWell, I have the GUI, but not the functions that make it be functional16:13
Akiva-Thinkpadokay, yah keep the gui in qml16:13
vitimitiSo I can create some C++ functions that will let me have bigger access to the system, it will not be limited to its cache folder?16:14
Akiva-Thinkpadvitimiti, http://askubuntu.com/a/446736/25357916:14
Akiva-Thinkpadvitimiti, exactly16:14
Akiva-Thinkpadonce you branch out to c++; the world is your oyster16:15
vitimitiThanks a lot, I was quite stuck there16:15
Akiva-Thinkpadvitimiti, no problem.16:15
Akiva-Thinkpadvitimiti, one thing you may consider is starting from one of the templates16:15
Akiva-Thinkpadthis will get the preliminary work out of the way16:15
Akiva-Thinkpadsec16:15
vitimitiAkiva-Thinkpad, I've started the UI with the Ubuntu Simple UI template, though I still have to find out how to add the C++ code to the project16:16
Akiva-Thinkpadyah open up a new project, and do "app with qml extension library", and it will state in the description that it uses c++ bindings16:17
* Akiva-Thinkpad sees its still cmakelists...16:17
vitimitihum, I can't find that one16:17
Akiva-Thinkpadbloody snakes16:17
vitimitiOh, now I do16:17
Akiva-Thinkpadshould be third option16:17
Akiva-Thinkpadyah16:17
vitimitiQML Extension Library + Tabbed UI, is it?16:18
Akiva-Thinkpadthats what I used  for my app16:18
Akiva-Thinkpadsec16:18
Akiva-Thinkpaddouble checking16:18
Akiva-Thinkpadvitimiti, http://i.imgur.com/yx5GQrQ.jpg16:19
Akiva-Thinkpadthat one16:19
vitimitiLet me load the page, it takes time with this connection16:19
Akiva-Thinkpad:P16:19
vitimitiAkiva-Thinkpad, yeah, it's that. Just I think I have an older version of the Ubuntu SDK, it looks quite different16:20
Akiva-Thinkpadvitimiti, might be worth updating16:20
vitimitiAkiva-Thinkpad, I will look for the ppa, yes16:20
Akiva-Thinkpadthe only thing I don't like about that template is that it uses cmakelists16:20
vitimitiAs long as it works how I need it to...16:21
Akiva-Thinkpadvitimiti, yep16:21
vitimitias I need it to*16:21
* Akiva-Thinkpad wonders if cmakelists is neccesssary for qt/c++16:21
Akiva-Thinkpadanyways worked for me quite easily16:22
Akiva-Thinkpadgtg16:22
Akiva-Thinkpadbbl16:23
Akiva-Thinkpado/ vitimiti16:23
Akiva-Thinkpadbtw, in 15 hours, that is probably when the devs will get up, and start the next week16:23
Akiva-Thinkpadlater16:23
vitimitiAkiva-Thinkpad, bye16:24
SturmFlutvitimiti, Akiva-Thinkpad: You have to use CMake for any code containing C++. qmake is not supported.16:29
SturmFlutrpadovani: My Qt3D app got published, it's "Qt3D cylinder" in the store. Would be nice to know if it works on other people's devices too.16:45
SturmFlutpopey: Thanks for the review. The transparent background is currently a "feature" :(, it took me two weeks to get the whole thing to its current state and I didn't have the time to fix every detail. I'll look into a nicer background for the next version. But while we're at it: How did you take the screenshot from the device?16:47
doflahertysturmflut, how did you get qt3d into your app?17:02
rpadovaniSturmFlut, phablet-screenshot image.png17:04
rpadovaniSturmFlut, I'll take a look17:04
doflahertyit runs on my phone - pretty cool17:04
doflahertyaside from that transparent background issue17:05
rpadovanimhall119, oh, another thing about store: last update data is wrong, for 100balls is blocked on 17/Jul/14. Against which project I can open bugs?17:10
SturmFlutdoflaherty: You have to use native C++ code, QML won't work. The source code is at https://github.com/Sturmflut/ubuntu-touch-qt3d-cylinder.git17:12
SturmFlutdoflaherty: There was only a single 3D app in the store (HexGL) and it didn't work on my phone (see https://bugs.launchpad.net/webapps-touch/+bug/1356566) so I wanted to know if the problem was related to the platform itself or just the browser (HexGL uses WebGL inside a browser widget). Now i know that the platform is not at fault.17:14
ubot5Ubuntu bug 1356566 in oxide-qt (Ubuntu) "Image distortion and low framerate when using WebGL on Nexus devices" [Undecided,New]17:14
doflahertyokay, I had tried Qt3D with QML with no success - I'll look into C++17:16
doflahertythanks!17:16
SturmFlutHow can I reliably detect if I am building for the Desktop or the Phone inside a CMake file?17:29
popeySturmFlut: no problem.17:33
SturmFlutFor some reason neither CLICK_MODE nor UBUNTU_CLICK_MODE are defined when I build via Qt Creator17:45
mhall119rpadovani: https://bugs.launchpad.net/developer-portal/+filebug18:25
mhall119rpadovani: but FWIW, I see 0.3.1 as the current version of 100 Balls18:25
popeyyeah, i approved it earlier.18:29
mhall119popey: you approved 0.3.1 not 0.3.1.5 right?18:37
popeymhall119: i approved 0.3.1 4 hours ago18:38
popeythere is no 0.3.1.5 in the store18:38
popeySturmFlut: that update works nicely19:10
SturmFlutpopey: Great. It is a bit of a hack, but it does the job.19:15
SturmFlutpopey: The Ubuntu UK Podcast is one of my favourite podcasts, btw. It often sweetens my commute to work.19:18
popey*\o/*19:18
popeyThanks!19:18
rpadovanimhall119, yes, but what's the update date? I see 17/Jul/14 on my device19:30
rpadovanishould be 7/Sep/1419:30
popeyrpadovani: yes, thats wrong19:53
popeyhttp://popey.mooo.com/screenshots/device-2014-09-07-205359.png19:54
popeyI'd file a bug19:54
rpadovanithanks for confirm19:54

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