Re: [Interest] String best practice

2017-03-14 Thread Ch'Gans
On 14 March 2017 at 22:43, Harald Vistnes wrote: > Hi, > > I'm currently working on reading and parsing large ASCII based text files > and I am wondering what is the current best practice. There are so many > classes and macros available, so it can be a bit confusing to know what to > use when. C

Re: [Interest] String best practice

2017-03-14 Thread Thiago Macieira
On terça-feira, 14 de março de 2017 10:34:25 PDT Konstantin Tokarev wrote: > > If you want to be flexible as to the encoding of your file, I'd use > > QTextStream and compare to QString. > > Good point, but original question was about ASCII. Which is usually good enough, until it isn't :-) -- T

Re: [Interest] How do you want to select exactly C++11 with GCC 6+?

2017-03-14 Thread Thiago Macieira
On terça-feira, 14 de março de 2017 09:25:28 PDT Nikos Chantziaras wrote: > On 03/12/2017 11:38 PM, Thiago Macieira wrote: > > Conclusion from this thread is that there is no consensus. > > > > Therefore, I will do nothing and will leave the behaviour exactly as is. > > That is, option I. > > Whi

Re: [Interest] constexpr construct a QLatin1String from a raw string literal

2017-03-14 Thread Thiago Macieira
On terça-feira, 14 de março de 2017 09:03:11 PDT Gunnar Roth wrote: > Hello Qt and C++ experts. > > I try to let the compiler generate a QLatin1String instance from a string > literal. Q_DECL_CONSTEXPR inline explicit QLatin1String(const char *s) > Q_DECL_NOTHROW : m_size(s ? int(strlen(s)) : 0),

Re: [Interest] String best practice

2017-03-14 Thread Konstantin Tokarev
14.03.2017, 18:57, "Thiago Macieira" : > On terça-feira, 14 de março de 2017 02:50:57 PDT Konstantin Tokarev wrote: >>  > Should I just use QString all the way, or is it faster to use some other >>  > classes when you know you don't need unicode? >>  You should use QByteArray here, which is what

[Interest] ApplicationWindow overlay item opacity aspects

2017-03-14 Thread Oleg Evseev
Hi, Trying to change modal popups dim color using overlay property of ApplicationWindow, I wonder why opacity with this one not works (dim background is solid black): overlay.modal: Rectangle { color: "black" opacity: 0.2 } Only this one works: overlay.modal: Rectang

Re: [Interest] How do you want to select exactly C++11 with GCC 6+?

2017-03-14 Thread Nikos Chantziaras
On 03/12/2017 11:38 PM, Thiago Macieira wrote: Conclusion from this thread is that there is no consensus. Therefore, I will do nothing and will leave the behaviour exactly as is. That is, option I. Which is fine, because people should be switching to qbs anyway ;-) ___

[Interest] Accessing custum url types for Media Player

2017-03-14 Thread Pasiak, Emily
I want to use a Video/MediaPlayer QML element in my app, and have it play a video from a custom stream. QMediaPlayer seems to support this since you can tell it to read from a QIODevice which can do anything you want. But MediaPlayer only supports a URL. Is there any way I can register my own U

[Interest] constexpr construct a QLatin1String from a raw string literal

2017-03-14 Thread Gunnar Roth
Hello Qt and C++ experts.   I try to let the compiler generate a QLatin1String instance from a string literal. Q_DECL_CONSTEXPR inline explicit QLatin1String(const char *s) Q_DECL_NOTHROW : m_size(s ? int(strlen(s)) : 0), m_data(s) {} cannot really do this as it uses strlen,  is this right? Onl

Re: [Interest] QtLingust

2017-03-14 Thread Thiago Macieira
On terça-feira, 14 de março de 2017 07:06:48 PDT Jason H wrote: > I need to distribute Qt Linguist. What is the easiest way to distribute > this? There is no download available. Target platform is OSX. macdeployqt -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel O

Re: [Interest] String best practice

2017-03-14 Thread Thiago Macieira
On terça-feira, 14 de março de 2017 02:50:57 PDT Konstantin Tokarev wrote: > > Should I just use QString all the way, or is it faster to use some other > > classes when you know you don't need unicode? > You should use QByteArray here, which is what QIODevice::readLine() returns. > Avoid using QStr

[Interest] QtLingust

2017-03-14 Thread Jason H
I need to distribute Qt Linguist. What is the easiest way to distribute this? There is no download available. Target platform is OSX. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] String best practice

2017-03-14 Thread Konstantin Tokarev
14.03.2017, 12:44, "Harald Vistnes" : > Hi, > > I'm currently working on reading and parsing large ASCII based text files and > I am wondering what is the current best practice. There are so many classes > and macros available, so it can be a bit confusing to know what to use when. > > QString,

Re: [Interest] String best practice

2017-03-14 Thread Vlad Stelmahovsky
and dont forget coming QStringView ps. also +1 to the question On Tue, Mar 14, 2017 at 10:43 AM, Harald Vistnes wrote: > Hi, > > I'm currently working on reading and parsing large ASCII based text files > and I am wondering what is the current best practice. There are so many > classes and macro

Re: [Interest] [NFC] RFID tag reading

2017-03-14 Thread Oleg Evseev
Hi Alex, I did https://codereview.qt-project.org/#/c/188351/. You can change description as you wish. Thanks for your work! 2017-03-14 12:00 GMT+03:00 Alex Blasche : > Hi Oleg, > > thank you for figuring this out. Would you be willing to submit a patch to > Qt (codereview.qt-project.org) for thi

[Interest] String best practice

2017-03-14 Thread Harald Vistnes
Hi, I'm currently working on reading and parsing large ASCII based text files and I am wondering what is the current best practice. There are so many classes and macros available, so it can be a bit confusing to know what to use when. QString, QLatin1String, QByteArray, QStringLiteral, QLatin1Lit

Re: [Interest] [NFC] RFID tag reading

2017-03-14 Thread Alex Blasche
Hi Oleg, thank you for figuring this out. Would you be willing to submit a patch to Qt (codereview.qt-project.org) for this problem (target branch 5.9)? If you put me on review I am happy to accept it. -- Alex From: Interest on behalf of Oleg Evseev S