/srv/irclogs.ubuntu.com/2016/02/13/#ubuntu-app-devel.txt

McIntire1vanSo my MainView is resized from the code, but the window itself does not resize along with it, how do I change that? https://i.imgur.com/WFDvag6.png is an example of the MainView being smaller than the window03:01
=== McIntire1van is now known as McIntireEvan
=== chihchun_afk is now known as chihchun
ollihi13:36
olliappdevs, I seem to be missing something but can't figure myself atm... I am on xenial on ubuntu desktop and want to install some of the core apps13:37
ollibut it seems like we aren't building them for xenial13:38
DanChapmanolli, Yeah alot of them need updating in the core apps ppa. dpm has a ppa though with a few packaged for xenial https://launchpad.net/~dpm/+archive/ubuntu/ppa?field.series_filter=xenial14:44
DanChapmanMcIntireEvan, did you figure out your MainView/Window resize issue?14:47
McIntireEvanDanChapman: Nope, not yet20:17
DanChapmanMcIntireEvan, you need to wrap the MainView in a QQuickWindow http://doc.qt.io/qt-5/qml-qtquick-window-window.html You will then be able to set the window sizes. MainView just inherits from Item so the QQuickView automagically places it in a Window at run time.20:20
DanChapmanMcIntireEvan, here's an example http://bazaar.launchpad.net/~mzanetti/machines-vs-machines/trunk/view/head:/app/machines-vs-machines.qml20:22
McIntireEvanDanChapman: Thanks, that makes a lot of sense! I tried it, and i had a few difficulties due to the fact that in the C++ that loads everything it is defined a s a QQuickView, but looking a tthe docs I found ResizeMode, would setting it to QQuickView::SizeRootObjectToView instead of wrapping the whole thing in a window do what I want?20:46
McIntireEvanDanChapman: Blah, scratch that, it already has that option set20:52
McIntireEvanDanChapman: Turns out setting it to QQuickView::SizeViewToRootObject makes it work perfectly :) Thanks for the help, it at least pointed me in the right direction and got me looking at some different code20:58

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