[Interest] QSurfaceFormat and swapInterval

2013-11-02 Thread Peter Koek
QGLFormat exposes a swapInterval property which can be used to enable vertical synchronization (v-sync) to avoid screen tearing.Why does QSurfaceFormat not expose this property? Currently, there is no direct way to enable v-sync with QWindow, while QGLWidget did not have this problem.What is the

[Interest] QML / Qt Creator: Invalid property when using intermediate template

2013-08-28 Thread Peter Koek
I have the following class hierarchy:Base (Q_OBJECT) -> IntermediateTemplate -> Derived (Q_OBJECT, not templated)The base class exposes some properties that are used by derived. Both the Base and the Derived are exposed to QML, but only Derived is creatable.The template exists to reduce boilerpl

Re: [Interest] QObject, PIMPL and overloading operator new

2013-08-16 Thread Peter Koek
> Den 16-08-2013 11:34, Peter Koek skrev: > > Suppose that I have objects deriving from QObject and want to control > > their dynamic allocations for performance reasons. I would overload > > operator new to allocate them, for example, into a pool. None of this is > >

[Interest] QObject, PIMPL and overloading operator new

2013-08-16 Thread Peter Koek
Suppose that I have objects deriving from QObject and want to control their dynamic allocations for performance reasons. I would overload operator new to allocate them, for example, into a pool. None of this is implemented in any way yet.The objects themselves would now be allocated in the pool.

[Interest] QML: Public API for creating user defined basic types

2013-08-09 Thread Peter Koek
As explained on stackoverflow (http://stackoverflow.com/questions/15535694/how-to-create-custom-basic-type-in-qml), creating user defined QML basic types is not currently supported, but can be done through private parts of Qt Quick. I feel this is a limitation as I want to be able to define my o