[Development] Stepping down as maintainer

2018-03-19 Thread Gunnar Sletta
Hi, After quite some time of not being active in Qt, I am now formally stepping down as maintainer. It has been a great ride, but I simply don't have time to follow up Gui and Scene Graph and it makes sense that the people who are active in these areas also become the go-to guys. I've already

Re: [Development] Image and PreserveAspectCrop

2016-08-02 Thread Gunnar Sletta
> On 02 Aug 2016, at 18:03, Albert Astals Cid <albert.ast...@canonical.com> > wrote: > > On Tue, Aug 2, 2016 at 1:56 PM, Gunnar Sletta <gun...@sletta.org> wrote: >> Hi, >> >> I think the most sensible solution is to handle this inside the imag

Re: [Development] Image and PreserveAspectCrop

2016-08-02 Thread Gunnar Sletta
Hi, I think the most sensible solution is to handle this inside the image provder. When I've seen this problem previously, it has was solved using a custom image provider for local files, but as you say, when the resources are scattered across the local and network alike, then you want the

Re: [Development] QtWayland synchronisation between GL and compositor

2016-05-26 Thread Gunnar Sletta
Hi Tomek, You're not really missing anything :) In the case of an asynchronous swapBuffers, there is a slight chance the wl_buffer release on the next draw pass will be premature, because there is nothing the qtwayland module that catches when the GPU is done with a frame. In stack that I'm

Re: [Development] QtQuick Call for Maintainer

2016-03-07 Thread Gunnar Sletta
I'm sorry to see you step down, Alan. Thanks for all the good work! I would like to suggest Robin Burchell for the role of future Qt Quick maintainer. He is a long time Qt contributor and has repeatedly shown insight and dedication to the project. From various work he has solid experience

Re: [Development] Aliasing with QSGRectangleNode

2015-12-16 Thread Gunnar Sletta
It is curious that the aliasing in the 1x image is not reproducible with the Rectangle {} element and only for some of the elements.. Some subtlety with the private api. One difference might be that you are giving your rectangle nodes an explicit x/y while the Rectangle element uses a transform

Re: [Development] Question about the QDataBuffer from src/gui/painting

2015-10-26 Thread Gunnar Sletta
> On 26 Oct 2015, at 09:56, Marc Mutz <marc.m...@kdab.com> wrote: > > On Monday 26 October 2015 08:20:38 Gunnar Sletta wrote: >> I don't know if std::vector::erase() and std::vector::clear() can guarantee >> that the data is not reallocated, even if reserve() has bee

Re: [Development] Question about the QDataBuffer from src/gui/painting

2015-10-26 Thread Gunnar Sletta
The purpose of QDataBuffer is to provide a managed pool of memory that can grow, but does not shrink unless shrunk explicitly. QVector is unusable for this purpose as a resize/clear/append would cause a lot of reallocations for the places where QDataBuffer is used. I don't know if

Re: [Development] Question about the QDataBuffer from src/gui/painting

2015-10-26 Thread Gunnar Sletta
> On 26 Oct 2015, at 10:12, Marc Mutz <marc.m...@kdab.com> wrote: > > On Monday 26 October 2015 08:20:38 Gunnar Sletta wrote: >> The purpose of QDataBuffer is to provide a managed pool of memory that can >> grow, but does not shrink unless shrunk expl

Re: [Development] Qt 5.6.0 header diff: QtQuick.diff

2015-09-18 Thread Gunnar Sletta
> On 18 Sep 2015, at 10:56, Knoll Lars <lars.kn...@theqtcompany.com> wrote: > > On 18/09/15 10:49, "Gunnar Sletta" <gun...@sletta.org> wrote: > >> >>> On 18 Sep 2015, at 09:36, Knoll Lars <lars.kn...@theqtcompany.com> >>>

Re: [Development] Qt 5.6.0 header diff: QtQuick.diff

2015-09-18 Thread Gunnar Sletta
> On 18 Sep 2015, at 09:36, Knoll Lars wrote: > > New properties: > > QQuickFramebufferObject::mirrorVertically, looks ok > QQuickPaintedItem::textureSize, not ok. It’s not versioned. Like QQuickFramebufferObject, the object is not instantiated from QML, so the

Re: [Development] Qt 5.6.0 header diff: QtGui.diff

2015-09-17 Thread Gunnar Sletta
Also looks ok. > On 17 Sep 2015, at 12:54, Frederik Gladhorn > wrote: > > ___ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] QtCS: Qt Quick Performance discussion

2015-06-23 Thread Gunnar Sletta
As promised in the talk, I moved the qmlbench tool to a separate repo and gave it a readme: https://github.com/sletta/qmlbench Still under my github account, but now it is at least documented so others can take part in interpreting the results. On 22 Jun 2015, at 14:47, Robin Burchell

Re: [Development] QSceneGraph debugging

2015-06-11 Thread Gunnar Sletta
Hi Thomas, You are hitting one of the less ideal code paths with this testcase, see my comments below. I think the core problems are already outlined in https://bugreports.qt.io/browse/QTBUG-42853. On 11 Jun 2015, at 14:32, Thomas Senyk thomas.se...@pelagicore.com wrote: Hi, currently

Re: [Development] QSceneGraph debugging

2015-06-11 Thread Gunnar Sletta
On 11 Jun 2015, at 16:16, Thomas Senyk thomas.se...@pelagicore.com wrote: … Nothing in the UI is entering/leaving screen or explicitly created/destroyed ... so I wonder where the new Node comes from. I'll look closer at what the Node is. QSG_VISUALIZE=changes and/or

Re: [Development] QQuaternion issues with new 5.5 API

2015-04-24 Thread Gunnar Sletta
On 24 Apr 2015, at 14:33, Marc Mutz marc.m...@kdab.com wrote: Hi, While implementing qHash() overloads for gui/math3d classes, Why are we doing this? a QHashQMatrix4x4, T makes very little sense me.. - Gunnar I found that QQuaternion gained several methods for 5.5 which I don't like:

Re: [Development] Rotating JPEG images by default

2015-04-23 Thread Gunnar Sletta
I think we should strive to not introduce regressions on purpose. Hence: - Revert the behavioral change in 5.4 which adds rotation to JPEGs - Have opt-in rotation in QImageReader. - Keep TIFF rotation as it is (and change it to the Qt-wide default for Qt 6) Anything else will cause us a lot of

Re: [Development] Rotating JPEG images by default

2015-04-23 Thread Gunnar Sletta
On 23 Apr 2015, at 13:20, Alberto Mardegan ma...@users.sourceforge.net wrote: On 04/23/2015 01:36 PM, Gunnar Sletta wrote: I think we should strive to not introduce regressions on purpose. Hence: - Revert the behavioral change in 5.4 which adds rotation to JPEGs - Have opt-in rotation

Re: [Development] Failed assertion in QSGBatchRenderer::ShaderManager::prepareMaterial()

2015-02-17 Thread Gunnar Sletta
-131054C (OpenGL version 6.14.10.11399). Bojan On 17 February 2015 at 16:56, Gunnar Sletta gun...@sletta.org mailto:gun...@sletta.org wrote: The renderer will give that assertion if your OpenGL context isn’t working correctly. For instance, if you compiled Qt with desktop gl, but you don’t

Re: [Development] Failed assertion in QSGBatchRenderer::ShaderManager::prepareMaterial()

2015-02-17 Thread Gunnar Sletta
The renderer will give that assertion if your OpenGL context isn’t working correctly. For instance, if you compiled Qt with desktop gl, but you don’t have up to date drivers. Though this should have been caught by the error checking in the render loop already, so it is a bit puzzling. What

Re: [Development] Item creation time in QML

2015-02-12 Thread Gunnar Sletta
On 12 Feb 2015, at 18:03, Gunnar Roth gunnar.r...@gmx.de wrote: Hi, after downloading it to my cell phone and picking it with usb connection, i was finally able to read pdf document. I am curious what the unit of the x-axis is in your diagrams, i fugure higher is better, but what is

[Development] Item creation time in QML

2015-02-09 Thread Gunnar Sletta
Hi, Thought I would share a couple of benchmark numbers for item creation time in QML. The sources are found here: https://github.com/sletta/stuff/tree/master/qml/benchmarks https://github.com/sletta/stuff/tree/master/qml/benchmarks. The motivation is that we can generally animate a large

Re: [Development] QSG render thread crashes during volumetric rendering

2014-12-15 Thread Gunnar Sletta
Maybe try a call to QQuickWindow::resetOpenGLState() after VTK finishes. It may be some dangling GL state that messes up for the renderer. cheers, Gunnar On 12 Dec 2014, at 21:19, Cartik Sharma cartik.sha...@gmail.com wrote: Hello, I'm trying to do volumetric rendering with VTK using the

Re: [Development] Some more maintainer nominations

2014-10-13 Thread Gunnar Sletta
On 13 Oct 2014, at 14:45, Thiago Macieira thiago.macie...@intel.com wrote: On Monday 13 October 2014 11:36:43 Knoll Lars wrote: Hi, I’d like to nominate a few more maintainers. Most of the below should be simply about making the de-facto status official, ie. Putting the person that does

Re: [Development] Qt3D on windows

2014-10-12 Thread Gunnar Sletta
On 12 Oct 2014, at 22:18, Sean Harmer sean.har...@kdab.com wrote: On 12/10/2014 21:08, Ray Donnelly wrote: On Sun, Oct 12, 2014 at 8:56 PM, Sean Harmer sean.har...@kdab.com wrote: Hi, just a quick heads up that Qt3D's wip/newapi branch now displays content usign threaded rendering on

Re: [Development] Implementation of QML Canvas

2014-10-02 Thread Gunnar Sletta
On 02 Oct 2014, at 17:13, Helmut Mülner helmut.muel...@gmail.com wrote: Hi! By stumbling over an out-of-memory problem in my application, I found out about the implementation of the QML Canvas item: It uses 2 QImages as internal buffers and uses QPainter to write into this buffer. (I

Re: [Development] OpenVG rendering backend to Qt Quick 2

2014-09-23 Thread Gunnar Sletta
On 18 Sep 2014, at 08:56, Mikko Hurskainen mikko.hurskai...@nomovok.com wrote: Hi, I am interested on working on Qt Quick 2 Scenegraph OpenVG rendering backend. Few embedded devices have both OpenVG and OpenGL accelerators available. There are few interesting use cases for embedded

Re: [Development] Changing GLdouble typedef in src/opengl/qgl.h

2014-09-04 Thread Gunnar Sletta
On 03 Sep 2014, at 22:20, Fredrik Höglund fred...@kde.org wrote: On Wednesday 03 September 2014, Thiago Macieira wrote: On Wednesday 03 September 2014 07:54:14 Saikrishna Arcot wrote: I should have mentioned that these libraries are using Qt 4, and it would be non-trivial to change them to

Re: [Development] Changing GLdouble typedef in src/opengl/qgl.h

2014-09-02 Thread Gunnar Sletta
On 03 Sep 2014, at 01:18, Saikrishna Arcot saiarcot...@gmail.com wrote: Hi, I was looking at trying to get some libraries and applications to compile in Ubuntu for armhf (which supports only OpenGL ES for performance reasons). When I was trying to get OpenSceneGraph to compile, I noticed

Re: [Development] New module QtCanvas3D now available

2014-08-21 Thread Gunnar Sletta
Hi Pasi, I'm super happy that we are finally getting support for WebGL in QML, so thanks for picking this up. I have some suggestions for further improvement though: We have a couple of items that implement QSGTextureProvider as an API. It would be really nice if we could use these directly

Re: [Development] New module QtCanvas3D now available

2014-08-20 Thread Gunnar Sletta
yay! :) On 20 Aug 2014, at 15:27, Keränen Pasi pasi.kera...@digia.com wrote: Hi, As part of Lars’s blog post some of you may have noticed that a new module called QtCanvas3D became available at https://qt.gitorious.org/qt/qtcanvas3d QtCanvas3D module is a lightweight implementation of

Re: [Development] Calling a function at frame-rate before rendering

2014-05-14 Thread Gunnar Sletta
It depends on what your update state is... If you want to tick rendering state (OpenGL and Scene Graph stuff) then you can call QQuickWindow::update() and make a direct connection to QQuickWindow::beforeRendering() to advance the state on the render thread just before the scene is drawn. If

Re: [Development] Jira component re-arrangements

2014-05-13 Thread Gunnar Sletta
: Friedemann Kleint GUI: X11 (xcb) integration - owner: Gunnar Sletta I would not be terribly upset if somebody that actually did work on the xcb plugin stepped up and took this one :) GUI: OS X (cocoa) integration - owner: Morton Sorvig For more details see QTJIRA-256 3.) - Core: Event System

Re: [Development] Question about Qt's future

2014-04-28 Thread Gunnar Sletta
On 28 Apr 2014, at 07:53, Peter Kümmel syntheti...@gmx.net wrote: ... ATM the problem is to get started because I don't know much about the current architecture of the graphic stack. http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph.html

Re: [Development] Custom QAnimationDriver

2014-04-14 Thread Gunnar Sletta
On 14 Apr 2014, at 08:23, Тимур Артиков t.arti...@gmail.com wrote: Hi Gunnar, In my case the current time of animations should be controlled by a video output device, and this time is not equals to real time (QUnifiedTimer::time.elapsed()). The QSG_FIXED_ANIMATION_STEP option is also not

Re: [Development] Custom QAnimationDriver

2014-04-11 Thread Gunnar Sletta
On 10 Apr 2014, at 13:29, Тимур Артиков t.arti...@gmail.com wrote: Hi, I'm trying to use Qt Quick for generation image sequence for video broadcasting. To do that I need to update Qt Quick scene animations with frame rate of the output video. I tried to create class derived from

Re: [Development] Nominating Giulio Camuffo (giucam) as an Approver

2014-04-01 Thread Gunnar Sletta
+1 On 01 Apr 2014, at 12:58, Nichols Andy andy.nich...@digia.com wrote: Hello fellow Qt developers, I would like to nominate Giulio Camuffo for Qt Project approver status. Giulio has been contributing to the QtWayland module for over a year now with both quality code submissions as well

Re: [Development] math3d in gui module

2014-03-25 Thread Gunnar Sletta
On 25 Mar 2014, at 03:22, Lorn Potter lorn.pot...@gmail.com wrote: Hi Kurt, On 22/03/2014 9:36 pm, Kurt Pattyn wrote: Hi, is there any reason why math3d is in the QtGUI module on not in the QtCore module? I agree it should have been moved to QtCore. As I remember the

Re: [Development] Nominating Ulf Hermann as approver

2014-03-05 Thread Gunnar Sletta
+1 On 04 Mar 2014, at 13:51, Simon Hausmann simon.hausm...@digia.com wrote: Hi, I'd like to nominate Ulf for approvership. He's been hacking on various bits and pieces in the profiler support in Qml and he also implemented a brand new profiler for the JavaScript engine. I'm convinced

Re: [Development] The Dynamic OpenGL on Windows Change

2014-02-28 Thread Gunnar Sletta
or llvmpipe. The latter can be the default, but must not exclude the former. Cheers, Laszlo -Original Message- From: Sean Harmer [mailto:sean.har...@kdab.com] Sent: 28. februar 2014 11:41 To: development@qt-project.org Cc: Gunnar Sletta; Agocs Laszlo Subject: Re: Re: [Development

Re: [Development] The Dynamic OpenGL on Windows Change

2014-02-27 Thread Gunnar Sletta
On 27 Feb 2014, at 22:17, Agocs Laszlo laszlo.ag...@digia.com wrote: On Thu, Feb 27, 2014 at 02:28:26PM +, Sean Harmer wrote: The apparent problem that this is attempting to address is the need for both ANGLE and desktop OpenGL builds of Qt on windows. As you know Qt As pointed out

Re: [Development] Adding 10-bit OpenGL support in QML

2014-02-26 Thread Gunnar Sletta
On 26 Feb 2014, at 18:26, Kurt Pattyn pattyn.k...@gmail.com wrote: Thanks for the reply. On 25 Feb 2014, at 23:22, Gunnar Sletta gunnar.sle...@jolla.com wrote: On 26 Feb 2014, at 00:42, Kurt Pattyn pattyn.k...@gmail.com wrote: We are currently looking into a way to render a 10-bit

Re: [Development] Adding 10-bit OpenGL support in QML

2014-02-25 Thread Gunnar Sletta
On 26 Feb 2014, at 00:42, Kurt Pattyn pattyn.k...@gmail.com wrote: We are currently looking into a way to render a 10-bit image in QML. I'm going to assume we're talking about Qt Quick 2.0. As in 10-bit grayscale or GL_UNSIGNED_INT_10_10_10_2? In any case, you can create a custom QSGTexture

Re: [Development] QML Image aliasing when animating

2014-01-22 Thread Gunnar Sletta
/QMLImageRenderQuality2.mov In fact this version is starting to look very similar to the results I was seeing with the font renders. On Jan 21, 2014, at 11:50 PM, Gunnar Sletta gunnar.sle...@jolla.com wrote: This is the expceted result. smooth: true uses bilinear filtering which is what is supported

Re: [Development] QML Image aliasing when animating

2014-01-21 Thread Gunnar Sletta
This is the expceted result. smooth: true uses bilinear filtering which is what is supported in hardware. When scaling down, this starts to degrade. The effect is drastic for high-contrast content like the edges of a font. Once go get below 0.5x scale factor the sampling starts to ignore pixels