Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Thiago Macieira
On segunda-feira, 7 de maio de 2018 21:30:33 PDT Christian Ehrlicher wrote: > I know that I should Q_ARG but I have problems using Q_ARG with a > typedef/templated parameter therefore I need to use QArgument for at > least this specific parameter and simply used it for all without > thinking about

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Christian Ehrlicher
Am 07.05.2018 um 21:40 schrieb Thiago Macieira: On Monday, 7 May 2018 11:24:55 PDT Christian Ehrlicher wrote: Hi, today I discovered that Q_QArgument does not handle a temporary (boolean) value as I would have expected it. I'm invoking the method similar to this: QArgument arg3("bool", !inProg

Re: [Interest] QImage transformed() background color

2018-05-07 Thread Jason H
> Sent: Monday, May 07, 2018 at 4:41 PM > From: "Christoph Feck" > To: "Jason H" , "interestqt-project.org" > > Subject: Re: [Interest] QImage transformed() background color > > On 07.05.2018 21:56, Jason H wrote: > > I'm rotating some images by non-90 degree amounts, but when I do, the image

Re: [Interest] Ensuring Dialog Window is a certain size which depends on Window title

2018-05-07 Thread Jason H
http://www.qtcentre.org/threads/63809-Unwanted-window-title-elision ?   Sent: Monday, May 07, 2018 at 4:13 PM From: "Christopher Probst" To: "interestqt-project.org" Subject: [Interest] Ensuring Dialog Window is a certain size which depends on Window title Hi,   Anybody here know of a quick w

Re: [Interest] QImage transformed() background color

2018-05-07 Thread Christoph Feck
On 07.05.2018 21:56, Jason H wrote: I'm rotating some images by non-90 degree amounts, but when I do, the image gets filled with a color value (black) for pixels where there is no image data after rotation, but are in the output image, which causes a problem with later analysis because it trip

[Interest] Ensuring Dialog Window is a certain size which depends on Window title

2018-05-07 Thread Christopher Probst
Hi, Anybody here know of a quick way to ensure the a dialog displayed with exec() will always show the full window title without any "..." . This is on Windows. I tried some horrible stuff like this setMinimumWidth(QApplication::fontMetrics().width(QApplication::applicationDisplayName())

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Giuseppe D'Angelo
Il 07/05/2018 20:24, Christian Ehrlicher ha scritto: I did not found a hint int the documentation about this behavior. Therefore my question - should this work for a queued connection or not? At least msvc2017 and gcc 4.8 don't like it when compiling with -O2... The documentation doesn't talk a

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Richard Weickelt
> today I discovered that Q_QArgument does not handle a temporary (boolean) > value as I would have expected it. > I'm invoking the method similar to this: > > QArgument arg3("bool", !inProgress); > request.replySlot.invoke(m_objToInform, Qt::QueuedConnection, arg1, arg2, > arg3); I think your ex

[Interest] QImage transformed() background color

2018-05-07 Thread Jason H
I'm rotating some images by non-90 degree amounts, but when I do, the image gets filled with a color value (black) for pixels where there is no image data after rotation, but are in the output image, which causes a problem with later analysis because it trips edge detection. It would be nice to

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Thiago Macieira
On Monday, 7 May 2018 11:24:55 PDT Christian Ehrlicher wrote: > Hi, > > today I discovered that Q_QArgument does not handle a temporary > (boolean) value as I would have expected it. > I'm invoking the method similar to this: > > QArgument arg3("bool", !inProgress); QArgument is not a documented

[Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Christian Ehrlicher
Hi, today I discovered that Q_QArgument does not handle a temporary (boolean) value as I would have expected it. I'm invoking the method similar to this: QArgument arg3("bool", !inProgress); request.replySlot.invoke(m_objToInform, Qt::QueuedConnection, arg1, arg2, arg3); Changing it to bool