=== aaron is now known as Guest84817 [03:36] Hi there I am creating a application and nothing is showing up after compile All I have is a mainview and a loader under it that has a page that loads . Any suggestions ? [03:38] Here is the code http://pastebin.com/nMFVWQsA [03:41] my main.cpp http://pastebin.com/mzdHfMBd [03:41] I snipped some of the imports but nothing major [03:42] anyways the loader says that everything is loaded up alright . but no window shows up at all. [03:54] If I build the application with out Ubuntu-Componets with my Downloaded Qt kit it shows up and works ... not sure what is going on here. === chihchun_afk is now known as chihchun [04:30] I have to reboot brb [05:19] Ok I think I figured it out. It s not linking to some internal libs. Tim to debug why. [05:22] what is odd is that it builds with no errors and says that it is linked. But when I run ldd the two internals are not found. Super odd [06:19] Note: Ubuntu applicaitons must use QQuickView the QQmlApplicaiton can not render on its own. That must be a bug. [07:42] good morning [07:48] good morning dholbach [07:48] hi m_jimmer [07:52] Hey dholbach . Hope that you are doing wonderful . I am doing Ok . deving up a application. Trying to figure out how I can make it so close to Qt default components and also close to Ubuntu ones. [07:53] I'm doing well, thanks :-) [07:53] all the best with your app! [07:53] thanks :) [08:06] does anyone know about the Dialogs on the phone ? Like when they pop are they always center in ? Or do I need to do math for x and y ? === ikonia_ is now known as ikonia === davmor2_ is now known as davmor2 [09:42] Good morning all! Happy Monday, and happy Freedom Day! 😃 [09:49] So I am making a login thingy at the moment and was wondering whta you all thought was a good passwd. I was thinking of having something like "extremely poor,poor ,Ok, good,Great" I am making this QRegEx and just whanted to see whta you all thought [09:52] Like it is on a scale of 0 -- 100 . Or well if it goes above 100 then it is still 100 [09:56] http://postimg.org/image/wcjdymy7n/ << For a better Idea === Guest84817 is now known as ahoneybun [10:08] \o/ [10:09] hola people I'm having issues with Tabs [10:09] http://pastebin.ubuntu.com/14848705/ === ogra_` is now known as ogra_ [10:22] JMulholland: Hi! I managed to create other numbers based on those Ubuntu CD covers, so you don't have to find them for me :) [10:34] ahoneybun: what kind of problem? [10:39] mivoligo, I can't get my About.qml page to load which causes the whole app not to start in the SDK [10:40] it is the 4th Tab in that pastebin [10:40] what error you get? [10:41] Type About Unavailable [10:41] I updated all the files to Ubuntu.Components to 1.3 from 1.1 I think [10:41] but the other Tabs don't give that error [10:41] can we see rest of the code? [10:42] I posted the main.qml [10:42] want the About.qml? [10:42] yes, please :) [10:42] http://pastebin.ubuntu.com/14848811/ [10:43] I'm also getting this: About.qml:25 ListItem.Header - ListItem is not a namespace [10:43] not sure why [10:43] I removed all the ListItems and still it is there [10:43] you have "import Ubuntu.Components.ListItems 1.3 as ListItem" [10:44] yes? [10:44] 3rd line [10:44] what's wrong with it? [10:45] there's no version 1.3 AFAIK [10:45] mm [10:45] and it's not needed really :) [10:45] https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ListItems.Standard/ [10:45] I remove it and the same thing [10:46] the error talks about a line that is not even there anymore [10:49] hmmm... that's strange, how do you run it? [10:49] from the SDK? [10:49] to the phone? [10:49] no [10:49] I can't even get it to run on the desktop [10:50] I've added back the Header and Standard to the same error [10:50] hell I've deleted the file and still get it [10:50] maybe it runs the same build every time [10:50] maybe [10:50] ahoneybun, go to your qt install dir see it is is there. read the qmldir file if you have wrong version [10:51] qt install dir? [10:51] like /usr/lib/x86_64/qt5/qml [10:51] like /usr/lib/x86_64/qt5/qml/Ubuntu/Components/ListItems [10:51] ahoneybun, you can find that out with qmake -query [10:52] but I'm not using qmake [10:52] there is a var call QT_INSTALL_QML [10:52] that does not matter [10:52] I have the dir x86_64-linux-gnu [10:52] qmake is also a command line tool and the command "qmake -query" is just that [10:53] no Ubuntu folder [10:53] what does "qmake -query | grep QT_INSTALL_QML" [10:53] say [10:53] QT_INSTALL_QML:/usr/lib/x86_64-linux-gnu/qt5/qml [10:54] what is under /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu ? [10:54] ahoneybun, you just replace the dots in your import with / : ) [10:55] I found the qmldir [10:55] ??? [10:55] I have 1.3 [10:55] : ) what is the error that you are getting on import ? [10:56] maybe you are using wrong kit ? [10:56] it is the desktop [10:56] or lib is not so good ? there are ways to test that also. [10:56] * ahoneybun throws the SDK out the window [10:57] * ahoneybun also needs more coffee [10:57] file:///home/aaron/Projects/2.0/.ubuntu-sdk-deploy/main.qml:57 Type About unavailable [10:57] file:///home/aaron/Projects/2.0/.ubuntu-sdk-deploy/components/About.qml:25 ListItem.Header - ListItem is not a namespace [10:57] those are my 2 errors [10:58] ahoneybun, are you sure that the "namespace" [10:58] there it is [10:58] call it something else lol [10:58] what? [10:58] import Ubuntu.Components.ListItems 1.3 as IAmAwesome [10:58] that is what the Docs say [10:58] bad docs lol [10:58] ... [10:58] same thing [10:59] you have to also change About.qml:25 ListItem.Header - ListItem is not a namespace [10:59] and this is why you should not try to fork something [10:59] to IAmAwesome.Header [10:59] ................................ [11:00] same error [11:00] same no matter what [11:00] so I have 2 Run things [11:00] UbuntuBegginer and QML Scene [11:01] Now that is odd. what is ls /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ListItems [11:02] mm [11:02] so it was some old build I think [11:02] ;) [11:03] mm [11:03] so Tabs are handled differently now [11:03] ??? [11:03] my tabs are not working now [11:03] you could also hard run qmlscene by its full path to make sure. and Run ldd against th libs to make sure that there is missing libs . [11:04] ahoneybun, IDK I just started with Ubuntu sdk last night. I just know Qt Real well [11:04] main.qml [11:04] opps [11:04] I'm really crap at it [11:04] my app was last updated 7 months ago [11:05] so lots of changes [11:05] I gave up on the Ubuntu ui toolkit and made my own because Qml profiler said there was way to may loaders and taking to long for things to load [11:05] mm [11:05] Loaders? [11:05] mm [11:05] but that is just me. I have nothing against it [11:05] https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Tabs/ [11:05] not bashing anything here. [11:05] source: (tabs.selectedTab === externalTab) ? Qt.resolvedUrl("MyCustomPage.qml") : "" [11:05] I'm wondering if I have to do this now [11:06] this seems to now work anymore: http://pastebin.ubuntu.com/14848877/ [11:06] ahoneybun, there is nothing wrong with one or two loaders that you use as a Singleton object it is when you haev 10 of them running [11:07] don't make my head hurt anymore dude lol I still have to go to work yet [11:07] I think I might go back to GTA5 [11:07] lol [11:07] what is GTA5 ? [11:08] * m_jimmer googles sorry [11:08] video game? [11:08] Yeah I jsut seen that [11:08] just * [11:09] I am writing encryotion lib and getting caught in a "what comes first the chicken or the egg " Thingy [11:09] but it is fun :) [11:10] \o/ [11:10] it worked [11:10] awesome :) [11:10] well [11:10] good job. [11:10] the app started [11:11] just missing one tab [11:11] funny [11:11] the one I thought would work [11:17] and it's back up [11:17] everything is working [11:27] always on the first launch the Label is flowing into the Tabs === chihchun is now known as chihchun_afk === lool- is now known as lool === JamesTait is now known as Guest5410 === wendar_ is now known as wendar === Guest5410 is now known as JamesTait === JamesTait is now known as Guest73851 === Guest73851 is now known as jayteeuk === jayteeuk is now known as JamesTait [18:01] balloons, so, what needs doing to un-dead the jenkins zombies? https://core-apps-jenkins.ubuntu.com/ ? [18:05] popey, aye.. Weird stuff indeed [18:05] popey, it's the ole java.io.IOException: No space left on device [18:10] popey, so I'll reduce the number of builds to keep on everything, and ask IS to clear up some space on the node [18:10] how did you know it's disk space, where'd you see that? [18:10] oh, i see, click dead :) [18:11] https://core-apps-jenkins.ubuntu.com/computer/ shows status, and yea :-) [19:56] balloons, do i see things getting processed now? [19:56] balloons, do i need to manually chug through each merge and re-approve them? [20:08] anyone having Labels over flow to the top Tab? [20:08] but only on the device not in the Local build [20:19] mm the ActionBar does not work right with Tabs I see [20:35] popey, if things got unapproved, yes. But they shouldn't have been toggle off -- they never ran [20:36] e.g. https://code.launchpad.net/~renatofilho/ubuntu-calendar-app/sdk-1-3/+merge/284454 [20:36] approved, not merged [20:36] gah, conflicts [20:37] renatu, seen those conflicts on your calendar merges? [21:34] Happy Birthday DanChapman. In a few hours anyway. Nonetheless, enjoy yourself! [21:37] ahayzen, around? [21:37] ahoneybun, o/ [21:37] have you had problems with Labels overflowing into Tabs? [21:38] ahoneybun, define overflowing? [21:38] ahoneybun, and what are they inside? [21:38] the Tab [21:38] let me get a ss [21:39] http://imgur.com/tqpuKVT [21:39] but once you switch Tabs it is fine [21:39] just on first launch [21:40] ahoneybun, hmm, what is the content inside the tab inside? like a Page ? or something [21:41] and is it flickable ? [21:41] well each tab is in it's own qml file [21:41] yea [21:41] it does not happen on the desktop though [21:41] ahoneybun, maybe the new sdk version has made it worse [21:41] mm maybe [21:41] ahoneybun, does it happen on all the tabs? [21:41] I mean I could just take the Label off [21:42] well I have a Label on another tab but it renders it fine [21:42] ahoneybun, compare the differences :-) [21:42] and when I switch back to the home tab it looks fine [21:42] I have, I've copied it all [21:42] heh [21:42] ahoneybun, can you pastebin the tab code for the one that is bad? [21:44] remember it works fine once you switch to a different tab and back [21:44] http://pastebin.ubuntu.com/14852592/ [21:44] I do need to file a bug against the lock screen too [21:44] since Dec really [21:45] ahoneybun, how is the tab part defined in the other file ? [21:45] I really want to use actions on the listitems to have a button to click to open the links too but that is another story lol [21:45] in the main.qml ? [21:45] ahoneybun, yeah that one [21:45] http://pastebin.ubuntu.com/14848877/ [21:46] what is the i18n in C++ so I can translate that also ? [21:46] thanks [21:46] example [21:47] QString fooBar = QString("Some Random String that says %1").arg("Hello"); tr(fooBar); [21:47] ahoneybun, maybe the Column needs to be anchored to the flickable or needs a height set? i'd have to play about with it to figure it out [21:48] looking at that SS I see that it says About yet it should say Home [21:48] mm [21:52] m_jimmer: use standard gettext in C++ [21:52] dobey, not sure what you mean. Here is a function http://pastebin.ubuntu.com/14852628/ [21:53] m_jimmer: so you'd just do QString(_("Foo bar %1")).arg("Hello") for example, don't recall exactly which header to include that defines _ though [21:54] ok. there is a thing like in Qt like tr() ? but your guys translation functions ? [21:55] ahayzen, changing the anchor margins of the flickable did something good [21:55] we don't generally use Qt's translations feature; we use gettext instead, as Qt's thing is specific to Qt [21:55] heh ahoneybun does it start correct when you then go to another tab and back again? [21:55] dobey, is there a IFDEF for Ubuntu Sdk that you know of ? [21:56] yea when I switch tabs [21:56] ahoneybun, and try on the Page putting anchors { fill: parent } [21:56] m_jimmer: i don't think so, no. the ui toolkit APIs are not exposed via C++ [21:56] what margins can I edit just for the top? [21:57] m_jimmer: you could just define all the strings in QML instead, and have the c++ set a property to fill in args as needed, and use the QML APIs for translations then [21:57] ahoneybun, topMargin ? [21:57] ahoneybun, but really it should work doing fill: parent etc... like it work for us in Music [21:57] (our tab component starts here http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/music-app.qml#L640 ) [21:57] Ok yeah I was thinking that I would set a global var that is if u_sdk then blah blah blah . if not use Qt. I am trying to make this so It is very very easy to compile against Qt with or without the SDK [21:57] thanks dobey ^^ [21:57] in the flickable? [21:58] ahoneybun, in the Page {} in the main.qml [21:59] ahoneybun, oh! [21:59] oh no you already do that [22:01] atm I'm wondering why it says About rather then Home [22:01] ahoneybun, ah, magic maybe it is on the wrong tab? [22:01] mhall119, ping [22:02] ahoneybun, try setting the currentTabIndex [22:02] ? [22:02] m_jimmer: i don't know what you're writing but if you're just doiong pure Qt, then use the standard Qt translations feature I guess. [22:02] ahoneybun, for example ... tabs.selectedTabIndex = 0 [22:03] we do that on startup [22:03] that topMargin trick lowers it on when you switch but what ever [22:03] ahoneybun, but then does it still say the About rather than Home? [22:03] when I switch to another tab and then Home it say Home the second time [22:03] ahoneybun, add to your Tabs {} ... Component.onCompleted: selectedTabIndex = 0 [22:04] mm that currentindex thing is losing me [22:04] ahoneybun, i think it is just showing the last one you define [22:04] dobey, Do you know about the confinement of a applicaiton in the sdk? I am writing a app that is a mix between ansible tower and nagios . and was jsut thinking about sftp or scp bindings., That brought up the thought of do I need my own file manager to get access to upload files ect . [22:04] all my tabs? [22:04] so Home = 0, Contribute = 1, Family = 2, About = 3 ... so they order you define them get an inex [22:04] *index [22:05] property alais tabsChilderen : mainTab.children [22:05] err sorry [22:06] mm [22:06] not sure I'm putting them in the right place [22:07] http://pastebin.ubuntu.com/14852701/ [22:07] ahoneybun, no in the Tabs {} ;-) [22:07] I did :) [22:07] dobey, like if I am to write a exposed QDirAbstractModel or something and then expose to Qml can I read | write to files ? [22:08] m_jimmer: your app can't read arbitrary files from disk. [22:08] System wide. Or do I need to do some tricks. Like switching users with pam or something [22:08] ahoneybun, like this http://pastebin.ubuntu.com/14852714/ :-) [22:08] m_jimmer: you would need to use content-hub API if you to be able to read files from somewhere [22:08] ahoneybun, in the Tabs {} .. not the Tab {} ;-) [22:08] dobey, thanks will look at that code. [22:09] dobey, what about creation of files with QFile QDir ect if I place in application dir ? [22:10] dobey, another reason I ask is because I have encryption lib that is needed to unlock files to log into applicaiton and want to make sure that I can run try and catch against [22:10] nope [22:11] damn Ubuntu.Components 1.3 [22:11] haha, i love that a youtube video showing the ubuntu phone terminal is currently at the top of /r/linux :) https://www.reddit.com/r/linux [22:12] ahoneybun, does that not even fix the wrong label? [22:12] dobey, or mayb I have to do something crazy like make lxc container for just this application. But then it is like getting to C groups could be real odd and time consuming [22:12] well I had the topMargin on so idk [22:12] m_jimmer: you can only mess with files within the application's XDG directories === _salem` is now known as _salem [22:12] Is there no way to make the file system more then read only ? [22:13] ahoneybun, anyway i've got to go, good luck :-) [22:13] no [22:13] like a trick [22:13] thanks as always [22:13] m_jimmer: i'm not entirely sure what you're doing, but it sounds like you are making things way more complex than they should be [22:13] m_jimmer: there is, but it's not something that people should be doing in general [22:13] * ahoneybun is tempted to flash Android back [22:13] m_jimmer: if making the root FS read-write is a requirement of your application, you're not developing an application for the phone [22:14] dobey, so say that I want Download a file wih Qnetwork[Acess ,Request,Respond] and I want save to say DL folder then maybe upload to all connected nodes (servers) [22:14] like a git repo or something that has "moduals " [22:15] like bash and whta not that can be run with remote qprocess [22:15] you are making things way more complex than they probably need to be [22:15] download file -> add to JSON or XML -> push to all servers [22:15] because i don't understand at all what you actually need to do, given your description of it [22:16] dobey, do you know what ansilbe or puppet is ? [22:16] also nagios ? [22:16] like i said, you can only write data to the app's XDG dirs [22:16] take the two and put them together that is what I am making [22:16] i've used puppet before, yes [22:16] http://www.ansible.com/tower [22:17] dobey, so Like puppet but with pure ssh . with timers that are used to run remote commands to check on server status [22:17] your app cannot run forever under confinement [22:18] Oh no no background process are allowed ? [22:18] right [22:18] I am glad we are talking aout this now [22:18] I can not make a init script to start app on boot or systemd thingy ? [22:18] the app lifecycle prevents your application from processing while it is not in the foreground with the screen on [22:18] no [22:19] you can't create any apps which requires altering the root FS and put them in the store [22:19] dobey, even if I create a console application that say starts after gui is opened ? [22:19] your app must work within its own confinement, and within the application life cycle [22:20] Ok just thinking of work arounds. maybe I need to have server app(console in container ) [22:20] you can personally create a chroot in the data area of your phone and run stuff in it if you want [22:20] lxc or something on the cloud [22:20] but you cannot do this in a confined app from the store [22:21] dobey, so the applicaiton would need to get approved as something like a "Core application " [22:21] Some sorta special permissions via apparmor ? [22:22] no, i'm pretty sure we're not going to ship something by default which runs constantly in the background to poll ansible servers and run remote commands on them, on phones [22:22] maybe I could make two app's one that sits on desktop . then other that is nothing but kinda api layer [22:22] you need to architect your application within the confines of the app lifecycle and the security polices enforced upon it, if you want it in the app store [22:23] ouch. Ok let me do some more thinking abut the architect of the flow [22:23] could use say zeroMQ to pass data or something like websockets [22:24] * m_jimmer brain starts wondering [22:24] i don't know what your end goal is, but my suggestion would be to think of something that avoids the need for background processing [22:26] dobey, I think that I got it. I just need to now figure out the "node scripts" Like the modules of puppet [22:27] like send command over websockets (binary ) to server that can download then expose to a custom api [22:27] sorry server being someones desktop [22:27] I wanted to avoid the whole how to depoly with out a master though ... [22:28] * m_jimmer does more thinking about the chicken or the egg [22:32] dobey, do you know if I can use websockets or any tcp/ipc transport from phone ? [22:33] concern is ports [22:33] m_jimmer: you can talk to the network yes, if your app has the "network" apparmor profile iirc; but you can't run a server on the phone in your app [22:33] \o/ [22:34] now to zeroMq or to websocket ... that is the question :) [22:40] Ok final Question for a while (not to great with xdg so excuse if repetitive) do I have to set my Offline storeage to my app's root dir ? or can it be default ? [22:41] also getting a odd error on the qqmlengine for quit :/ [22:41] Signal QQmlEngine::quit() emitted, but no receivers connected to handle it. [22:42] I have to write hat into my main.cpp I guess. rough [22:51] i don't know what that means [22:56] m_jimmer: sorry, i don't know what you mean by set your offline storage. but i have to go now. good luck [22:57] thanks dobey for all your help it has been very nice of you . But for your future you can look at the docs and find the function [22:57] void setOfflineStoragePath(const QString & dir) [22:57] it is part of the QQmlEngine [22:57] helps with things like sqlight [22:58] and cache and what not [23:36] popey, I removed your branch as pre-requisite for merge. And the conflicts disappears. :D [23:36] popey, did you push anything new since last week? [23:37] popey, this is the new MR: https://code.launchpad.net/~renatofilho/ubuntu-calendar-app/sdk-1-3/+merge/284686 [23:40] ok