Re: [Interest] QGraphicsView selection not honoring QGraphicsItem::shape?

2017-06-25 Thread Patrick Stinson
Cool, thanks for digging into it a little more. Thanks for the tip on stroking the path for shape(), though I already do that as demonstrated in qgraphicsitemc.cpp - I just removed it from the example code I posted here :) Here is a video of it still not working but with your debug code: https

Re: [Interest] QGraphicsView selection not honoring QGraphicsItem::shape?

2017-06-25 Thread Christian Gagneraud
On 26 June 2017 at 14:57, Patrick Stinson wrote: > Thanks for the important tips, I wasn’t aware of any of them! I implemented > all of them. > > Unfortunately it is still selecting based on boundingRect. Any other > thoughts? Then the path returned by your shape() is wrong, first of all shape()

Re: [Interest] QGraphicsView selection not honoring QGraphicsItem::shape?

2017-06-25 Thread Christian Gagneraud
On 26 June 2017 at 14:58, Patrick Stinson wrote: > >> On Jun 25, 2017, at 4:51 PM, Christian Gagneraud wrote: >> >> On 26 June 2017 at 05:10, Patrick Stinson wrote: >>>def update(self, *args): >>>if None in self.people: >>>return >> >> you're missing a call to prepareGeom

Re: [Interest] QGraphicsView selection not honoring QGraphicsItem::shape?

2017-06-25 Thread Patrick Stinson
> On Jun 25, 2017, at 4:51 PM, Christian Gagneraud wrote: > > On 26 June 2017 at 05:10, Patrick Stinson wrote: >>def update(self, *args): >>if None in self.people: >>return > > you're missing a call to prepareGeometryChange() > >>a = self.mapToScene(self.people

Re: [Interest] QGraphicsView selection not honoring QGraphicsItem::shape?

2017-06-25 Thread Patrick Stinson
Thanks for the important tips, I wasn’t aware of any of them! I implemented all of them. Unfortunately it is still selecting based on boundingRect. Any other thoughts? > On Jun 25, 2017, at 5:00 PM, Christian Gagneraud wrote: > > On 26 June 2017 at 05:10, Patrick Stinson

Re: [Interest] QGraphicsView selection not honoring QGraphicsItem::shape?

2017-06-25 Thread Christian Gagneraud
On 26 June 2017 at 05:10, Patrick Stinson wrote: > > Hi there! > > I have a simple QGraphicsItem which draws the left, bottom, and right borders > of it’s bounding rect. I am painting the item by creating a QGraphicsPath > from top-left => bottom-left => bottom-right =>? top-right. > > I have re

Re: [Interest] QGraphicsView selection not honoring QGraphicsItem::shape?

2017-06-25 Thread Christian Gagneraud
On 26 June 2017 at 05:10, Patrick Stinson wrote: > def update(self, *args): > if None in self.people: > return you're missing a call to prepareGeometryChange() > a = self.mapToScene(self.people[0].bottomCenterScene()) > b = self.mapToScene(self.people[1].b

Re: [Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance

2017-06-25 Thread Thiago Macieira
On domingo, 25 de junho de 2017 04:30:59 PDT René J. V. Bertin wrote: > Thiago Macieira wrote: > > RCC registers the files with the resource file engine, so it can be found > > by QFile with the ":/" prefix. You must be talking about registering with > > something else. > > I'm talking about this

Re: [Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance

2017-06-25 Thread Elvis Stansvik
2017-06-25 16:25 GMT+02:00 Elvis Stansvik : > 2017-06-25 13:25 GMT+02:00 René J.V. Bertin : >> On Sunday June 25 2017 10:04:09 Elvis Stansvik wrote: >> >>> Say you have >> ... >>> >>> perhaps with inheritances icontheme4 -> icontheme3 -> icontheme2 -> >>> icontheme1. >> >> Yes, something like that

Re: [Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance

2017-06-25 Thread Elvis Stansvik
2017-06-25 13:25 GMT+02:00 René J.V. Bertin : > On Sunday June 25 2017 10:04:09 Elvis Stansvik wrote: > >> Say you have > ... >> >> perhaps with inheritances icontheme4 -> icontheme3 -> icontheme2 -> >> icontheme1. > > Yes, something like that, with the last item in the chain being the hicolor >

Re: [Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance

2017-06-25 Thread René J . V . Bertin
Thiago Macieira wrote: > RCC registers the files with the resource file engine, so it can be found by > QFile with the ":/" prefix. You must be talking about registering with > something else. I'm talking about this kind of registering: const QString iconThemeRcc = QStandardPaths::locate(QS

Re: [Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance

2017-06-25 Thread René J . V . Bertin
On Sunday June 25 2017 10:04:09 Elvis Stansvik wrote: > Say you have ... > > perhaps with inheritances icontheme4 -> icontheme3 -> icontheme2 -> > icontheme1. Yes, something like that, with the last item in the chain being the hicolor theme. > Then shouldn't you be able to just generate somet

[Interest] TableView in Qt Quick Controls 2

2017-06-25 Thread Andrew Ialacci
Hello, I understand that there is currently no TableView in Qt Quick Controls 2. According to this bug report, it’s slated for 5.10: https://bugreports.qt.io/browse/QTBUG-51710 Does anyone know if this is still true? Or when 5.10 will be released? Can anyone think of a way to use a GridView or

Re: [Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance

2017-06-25 Thread Elvis Stansvik
2017-06-25 10:04 GMT+02:00 Elvis Stansvik : > 2017-06-21 11:18 GMT+02:00 René J.V. Bertin : >> Hi, >> >> I'd like to create a single binary .rcc resource from a total of 4 >> Freedesktop icon themes that are linked through inheritance. >> Merging the actual directories is straightforward, but crea

Re: [Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance

2017-06-25 Thread Elvis Stansvik
2017-06-21 11:18 GMT+02:00 René J.V. Bertin : > Hi, > > I'd like to create a single binary .rcc resource from a total of 4 > Freedesktop icon themes that are linked through inheritance. > Merging the actual directories is straightforward, but creating a merged > index.theme file isn't . > > Does