McIntire1van | So 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 window | 03:01 |
---|---|---|
=== McIntire1van is now known as McIntireEvan | ||
=== chihchun_afk is now known as chihchun | ||
olli | hi | 13:36 |
olli | appdevs, 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 apps | 13:37 |
olli | but it seems like we aren't building them for xenial | 13:38 |
DanChapman | olli, 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=xenial | 14:44 |
DanChapman | McIntireEvan, did you figure out your MainView/Window resize issue? | 14:47 |
McIntireEvan | DanChapman: Nope, not yet | 20:17 |
DanChapman | McIntireEvan, 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 |
DanChapman | McIntireEvan, here's an example http://bazaar.launchpad.net/~mzanetti/machines-vs-machines/trunk/view/head:/app/machines-vs-machines.qml | 20:22 |
McIntireEvan | DanChapman: 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 |
McIntireEvan | DanChapman: Blah, scratch that, it already has that option set | 20:52 |
McIntireEvan | DanChapman: 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 code | 20:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!