Re: [Interest] OS X Qt 5.2/5.3 keyboard modifier bug

2014-04-04 Thread Tony Rietwyk
Hi Paul, This sounds similar to a problem I have in 4.8.5 with OSX 10.9. setFocus or activate on the window does not work. You have to click on the window for it to activate correctly. Same build works OK in 10.7. Might be related to Qt bugs 35659 & 33479. Regards, Tony > -Original

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Thiago Macieira
Em sex 04 abr 2014, às 16:01:18, Thiago Macieira escreveu: > Em sex 04 abr 2014, às 22:58:02, Guido Seifert escreveu: > > You can, but you should not. Convenient can also be interpreted as lazy. > > ;-) I would use a composition approach. Deemed to be more flexible. Why > > inheritance was used in

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Thiago Macieira
Em sex 04 abr 2014, às 21:20:23, Eric Clark escreveu: > I have worked around the warnings by using a QVector instead, but it would > still be nice to know why QList is producing all of these warnings... It's not QList, it's MSVC. I assume you added an export clause to your class, right? When you

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Thiago Macieira
Em sex 04 abr 2014, às 22:58:02, Guido Seifert escreveu: > You can, but you should not. Convenient can also be interpreted as lazy. ;-) > I would use a composition approach. Deemed to be more flexible. Why > inheritance was used in QQueue and QStack? Simpler code? Better > readability? Performance

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Sue, Michael
You'd have to show more of your code to make sure what the actual problem is, not just the error message. As it is I can only assume it's a missing C++11 feature that VS 2010 would need to easily re-use the class QList. -Michael. ___ Interest mailing

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Eric Clark
> -Original Message- > From: interest-bounces+eclark=ara@qt-project.org [mailto:interest- > bounces+eclark=ara@qt-project.org] On Behalf Of Guido Seifert > Sent: Friday, April 04, 2014 3:58 PM > Cc: interest@qt-project.org > Subject: Re: [Interest] QFileInfoList inheritance produc

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Guido Seifert
> Well, you _can_, as long as you only add methods and no members. Qt does it > too, with QQueue and QStack for instance. > It can be convenient to add some nice API. You can, but you should not. Convenient can also be interpreted as lazy. ;-) I would use a composition approach. Deemed to be mo

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Eric Clark
Thank you for the responses that I did get. I still have not solved the problem, but switching to QVector instead of QList seems to have gotten rid of the warnings. Thanks, Eric From: interest-bounces+eclark=ara@qt-project.org [interest-bounces+eclar

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Eric Clark
From: interest-bounces+eclark=ara@qt-project.org [interest-bounces+eclark=ara@qt-project.org] on behalf of Guido Seifert [warg...@gmx.de] Sent: Friday, April 04, 2014 2:38 PM To: interest@qt-project.org Subject: Re: [Interest] QFileInfoList inherit

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread André Somers
> Op 4 apr. 2014 om 21:38 heeft Guido Seifert het volgende > geschreven: > > >> Hello All, >> >> I am in the process of creating a class that I would like to inherit >> QFileInfoList. > > > Four words: Do not do it. QList's destructor not virtual -> not meant for > inheritance. Well, yo

Re: [Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Guido Seifert
> Hello All, > > I am in the process of creating a class that I would like to inherit > QFileInfoList. Four words: Do not do it. QList's destructor not virtual -> not meant for inheritance. Guido ___ Interest mailing list Interest@qt-project.org

[Interest] QFileInfoList inheritance producing warnings

2014-04-04 Thread Eric Clark
Hello All, I am in the process of creating a class that I would like to inherit QFileInfoList. Everything seems to compile well without errors, but I am getting a lot of warnings. I am using Visual Studio 10, dynamically linked Qt 5.2 and am receiving the following warnings: warning C4661: 'QL

Re: [Interest] OS X Qt 5.2/5.3 keyboard modifier bug

2014-04-04 Thread Etienne Sandré-Chardonnal
> > I would suggest capturing the key presses at an upper level (such as the > MainWindow) and change the child widget mouse cursor accordingly with > setCursor. This way, the behavior is independant from focus, does not > require mouse tracking, and does not require the cursor to be over the > wid

[Interest] OS X 5.3 beta - QPrintDialog does not open

2014-04-04 Thread Paul Miller
Anyone else seen any print-related issues on OS X? There are no errors in the console, it just doesn't open. I've deployed QPrintSupport.framework and plugins/printsupport/libcocoaprintersupport.dylib correctly, as far as I can tell. I just tried Assistant and Print doesn't work there either.

Re: [Interest] OS X Qt 5.2/5.3 keyboard modifier bug

2014-04-04 Thread Paul Miller
On 4/4/2014 10:01 AM, Etienne Sandré-Chardonnal wrote: > Do you have mouse tracking enabled on this widget? Otherwise you can't > detect when the mouse enters the widget. > I'm not sure that you implement it the proper way. Changing the mouse > cursor when a modifier key (eg Ctrl) il pressed should

Re: [Interest] OS X Qt 5.2/5.3 keyboard modifier bug

2014-04-04 Thread Etienne Sandré-Chardonnal
Do you have mouse tracking enabled on this widget? Otherwise you can't detect when the mouse enters the widget. I'm not sure that you implement it the proper way. Changing the mouse cursor when a modifier key (eg Ctrl) il pressed should not be done with the widget keyPressEvent, as this will not wo

Re: [Interest] format of QString

2014-04-04 Thread sarah jones
Hi you have misunderstood my problem The same pattern is behaving differently in 2 different programs given the string m_00010.rcd not matches should be made but my program is returning true (when it should return false) and then there are no capture groups Date: Fri, 4 Apr 2014 09:53:10 -0500

Re: [Interest] format of QString

2014-04-04 Thread Keith Gardner
You need to make a capture group by putting () around the expected text. Once you do that, you will get a list of size 1 from capturedTexts. QRegularExpression expression("^([cfmt]_\\d\\d\\d\\d\\d\\d\\.rcd)$"); On Fri, Apr 4, 2014 at 9:50 AM, sarah jones wrote: > Ok this is getting weird > I

Re: [Interest] format of QString

2014-04-04 Thread sarah jones
Ok this is getting weird I put my regular expression into a simple test program and it worked as expected. In my 'real' application the call to 'hasMatch' returns true but a call to capturedTexts returns an empty list has anyone any idea what is going on? From: qtsa...@outlook.com To: an...@fami

[Interest] OS X Qt 5.2/5.3 keyboard modifier bug

2014-04-04 Thread Paul Miller
Here is another regression I found that is a show-stopper for us. In a custom widget I have a keyPressEvent() and keyReleaseEvent() handler to update a cursor when modifier keys are pressed (such as Cmd). In Qt 5.x, pressing Cmd (or shift, or ctrl) causes no keyPressEvents UNTIL the user clicks

Re: [Interest] Qt 5.3 Beta - Multicast receiving only first packet.

2014-04-04 Thread Ryan Kroetch
Yes, that is the exact issue. I guess I should have checked the bug tracker. Thanks for pulling that up. On Fri, Apr 4, 2014 at 7:43 AM, Cornelius Hald wrote: > Could that be this issue? > https://bugreports.qt-project.org/browse/QTBUG-37489 > > > On Thu, 2014-04-03 at 15:31 -0500, Ryan Kroetch

Re: [Interest] format of QString

2014-04-04 Thread sarah jones
hi I thought I 'escaped' the dot character by using \\. is that not the case? Date: Fri, 4 Apr 2014 15:21:47 +0200 From: an...@familiesomers.nl To: qtsa...@outlook.com; interest@qt-project.org Subject: Re: [Interest] format of QString sarah jones schreef op 4-4-2014 15:16:

Re: [Interest] format of QString

2014-04-04 Thread André Somers
sarah jones schreef op 4-4-2014 15:16: Hi I have tried this regular expression - QRegularExpression expression("^[cfmt]_\\d\\d\\d\\d\\d\\d\\.rcd$"); if (expression.match(receivedFilename).hasMatch()); this finds a match for m_06.rcd but unfortunately it also matches m_006.rcd and I c

Re: [Interest] format of QString

2014-04-04 Thread sarah jones
Hi I have tried this regular expression - QRegularExpression expression("^[cfmt]_\\d\\d\\d\\d\\d\\d\\.rcd$"); if (expression.match(receivedFilename).hasMatch()); this finds a match for m_06.rcd but unfortunately it also matches m_006.rcd and I cannot figure out why I have tried thi

Re: [Interest] Qt 5.3 Beta - Multicast receiving only first packet.

2014-04-04 Thread Cornelius Hald
Could that be this issue? https://bugreports.qt-project.org/browse/QTBUG-37489 On Thu, 2014-04-03 at 15:31 -0500, Ryan Kroetch wrote: > After doing some testing on linux with Qt5.3-beta, it looks like the > problem is limited to Windows. > > > The same program receives multiple readyRead signal

Re: [Interest] format of QString

2014-04-04 Thread André Somers
R. Reucher schreef op 4-4-2014 13:47: > A slight modification to your proposed reg-exp: > > QRegExp regExp("(m|c)_([0-9]{6})\\.rcp"); For new (Qt 5) code, I really recommend using QRegularExpression instead of QRegExp where possible. André > > Regards, René > > On Friday 04 April 2014 13:25:36

Re: [Interest] format of QString

2014-04-04 Thread R. Reucher
A slight modification to your proposed reg-exp: QRegExp regExp("(m|c)_([0-9]{6})\\.rcp"); Regards, René On Friday 04 April 2014 13:25:36 Etienne Sandré-Chardonnal wrote: > Hi sarah, > > This is untested but should work: > > QRegExp regExp("(m|c)_([0-9]{6}).rcp"); > if(regExp.exactMatch(fileNam

Re: [Interest] format of QString

2014-04-04 Thread Etienne Sandré-Chardonnal
Hi sarah, This is untested but should work: QRegExp regExp("(m|c)_([0-9]{6}).rcp"); if(regExp.exactMatch(fileName)) { //Here we know that filename matches the pattern QString letter = regExp.cap(1);//Will be "m" or "c" QString number = regExp.cap(2);//Will contain the six digi

Re: [Interest] format of QString

2014-04-04 Thread André Somers
sarah jones schreef op 4-4-2014 12:47: Hi How would you advise that I ensure a QString object is of a given format. In particular I want to check that a QString conforms to the following m_ or c_ followed by 6 digits (0-9) followed by ".rcd" so m_01.rcd matches as does c_03.rcd but not m

[Interest] format of QString

2014-04-04 Thread sarah jones
Hi How would you advise that I ensure a QString object is of a given format. In particular I want to check that a QString conforms to the following m_ or c_ followed by 6 digits (0-9) followed by ".rcd" so m_01.rcd matches as does c_03.rcd but not m_aa2.rcd etc Thanks Sarah

[Interest] Issue with rotation by 90 deg.

2014-04-04 Thread venkat
Hi, We are using QT5.1.1 running on imx6q  with EGLFS platform.  We have following QML that implements Seek-Bar (in a music player), this has a handle that moves along with it fills an image (with yellow color). The QML works fine on the normal display. We have a dsi

[Interest] QT5.1.1 with wayland 1.0.3

2014-04-04 Thread venkat
Hi, We got the QT5.1.1 working with Wayland 1.0.3, we got older commit of QT wayland that works with wayland 1.0.3. But the latest QTWayland version recommends wayland 1.1.0 or greater. We are usign this on imx6q platform. We can’t switch the wayland version o