It's not a bug.
GridLayout is not a Positioner, so it does not provide such functionality
(however, it could). In this specific case you might be able to use the index
from the Repeater in your case.
If that's not sufficient, feel free to file a suggestion at
bugreports.qt-project.org.
Jan Arve
On domingo, 28 de julho de 2013 22:48:45, Milian Wolff wrote:
> On Sunday 28 July 2013 12:18:15 Thiago Macieira wrote:
> > On domingo, 28 de julho de 2013 13:51:13, Matt Broadstone wrote:
> > > Is there a reason this wasn't added for convenience? Or, would there be
> > > interest in me submitting a
On domingo, 28 de julho de 2013 13:51:13, Matt Broadstone wrote:
> Is there a reason this wasn't added for convenience? Or, would there be
> interest in me submitting a patch to include this in a later version of Qt?
> We should even be able to fix this seamlessly with templates unless I'm
> mistak
Hey all,
I've found more often than I'd like in my unit tests I'm writing a custom
deleter for QObjects when using a QScopedPointer. Something to the effect
of:
struct QObjectDeleter
{
static inline void cleanup(QObject *pointer) {
if (pointer)
pointer->deleteLater();
}
Hi,
When testing Qt Quick Layout, I see it's not possible to get index from
Positioner in layouts.
This code works:
import QtQuick 2.0
Grid { rows : 3; columns : 3 spacing : 4 Repeater { model : 9 Rectangle { width
: 50; height : 50 color : "lightgreen" Text { anchors.centerIn : parent
fon