Re: [Interest] item edit on mouse over - was: dynamic widget creation in QScrollArea

2016-08-08 Thread Frank Rueter | OHUfx
Hi Volker, that doesn't sound like a bad idea at all I think, though I'm no QT expert myself. I will try that tomorrow, thanks. On 9/08/16 5:57 pm, Volker Siepmann wrote: I'm quite new to qt, so please set me straight if this is nonsense: Can you use the blockSignals(True) method once the e

Re: [Interest] item edit on mouse over - was: dynamic widget creation in QScrollArea

2016-08-08 Thread Volker Siepmann
I'm quite new to qt, so please set me straight if this is nonsense: Can you use the blockSignals(True) method once the event was called, so it doesn't try to open it multiple times as you continue hovering? Then you need to catch the event of editor closing, so you can enable the signals again by b

Re: [Interest] item edit on mouse over - was: dynamic widget creation in QScrollArea

2016-08-08 Thread Frank Rueter | OHUfx
And one more follow up: I just tried this in my view class: def mouseMoveEvent(self, event): '''Find item under mouse and pop it into edit mode''' index = self.indexAt(event.pos()) self.edit(index) This successfully pops the first item under the mouse into edit mode,

Re: [Interest] item edit on mouse over - was: dynamic widget creation in QScrollArea

2016-08-08 Thread Frank Rueter | OHUfx
Ok, so after some more experimenting I am fairly certain that using seItemWidget inside the delegate's paint event is a bad idea. My second approach seems more promising so far: Using the custom movie player widget as the delegate's editor, even though I don't actually want to edit anything. How

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-08 Thread maitai
Thanks Ch'Gans for replying. The lines do not have a width. I thought about QGraphicsScene which I use already but it does seems to be too much for that (plus memory consumption is an issue as well). To give a bit mode details: The list of lines does not change during calculation, it changes

Re: [Interest] QQueue::enqueue hangs in QList::append

2016-08-08 Thread Ch'Gans
On 9 August 2016 at 05:09, Nilesh Kokane wrote: > On Aug 8, 2016 9:06 PM, "Thiago Macieira" wrote: >> >> On segunda-feira, 8 de agosto de 2016 20:11:38 PDT Nilesh Kokane wrote: >> > Hello, >> > >> > I've a QQueue designed for threadsafe as[1]. I push to the QQueue from >> > one thread and pop fro

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-08 Thread Ch'Gans
On 9 August 2016 at 04:05, maitai wrote: > Hello all, > > I have a list of lines (QLineF) in 2D space. Some might represent a closed > polygon, some others are just a line or represent a non closed polygon. > Classical problem: I need to detect if another given line is crossing one of > the lines

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-08 Thread Henry Skoglund
On 2016-08-08 18:05, maitai wrote: Hello all, I have a list of lines (QLineF) in 2D space. Some might represent a closed polygon, some others are just a line or represent a non closed polygon. Classical problem: I need to detect if another given line is crossing one of the lines in the list. I d

Re: [Interest] QQueue::enqueue hangs in QList::append

2016-08-08 Thread Nilesh Kokane
On Aug 8, 2016 9:06 PM, "Thiago Macieira" wrote: > > On segunda-feira, 8 de agosto de 2016 20:11:38 PDT Nilesh Kokane wrote: > > Hello, > > > > I've a QQueue designed for threadsafe as[1]. I push to the QQueue from > > one thread and pop from the other. After several attempts it hangs in > > QList

[Interest] best qt class to use to detect line/polygon/region collision

2016-08-08 Thread maitai
Hello all, I have a list of lines (QLineF) in 2D space. Some might represent a closed polygon, some others are just a line or represent a non closed polygon. Classical problem: I need to detect if another given line is crossing one of the lines in the list. I don't need the crossing point, ju

[Interest] High-DPI scaling of QQuickItem-derived class

2016-08-08 Thread Artem Fedoskin
Hello, I use QtQuickControls 2 together with QQuickItem-derived class in my app. After I set AA_EnableHighDpiScaling attribute and all QQuickControls 2 components look correctly on my smartphone but object of my custom class is scaled incorrectly. Here is the app without HighDpi scaling with minim

Re: [Interest] QQueue::enqueue hangs in QList::append

2016-08-08 Thread Thiago Macieira
On segunda-feira, 8 de agosto de 2016 20:11:38 PDT Nilesh Kokane wrote: > Hello, > > I've a QQueue designed for threadsafe as[1]. I push to the QQueue from > one thread and pop from the other. After several attempts it hangs in > QList::append near node_construct(n, t). > > [1]. https://paste.kd

[Interest] QQueue::enqueue hangs in QList::append

2016-08-08 Thread Nilesh Kokane
Hello, I've a QQueue designed for threadsafe as[1]. I push to the QQueue from one thread and pop from the other. After several attempts it hangs in QList::append near node_construct(n, t). [1]. https://paste.kde.org/p85706xzb Any clue? -- Nilesh Kokane _