Re: [Interest] QCommandLine parser: why can't value() return positional arguments?

2015-01-30 Thread Thiago Macieira
On Friday 30 January 2015 16:59:45 Jason H wrote: > This is my first use of the new class and I think it's missing a rather > obvious feature. > > If I parser.addPositionalArgument("key", ...) why can't I then return it > with parser.value(key)? > > When I try to use .value(key) I get: > QCommand

Re: [Interest] Text is not being anti-aliased.

2015-01-30 Thread René J . V . Bertin
On Friday January 30 2015 19:28:54 william.croc...@analog.com wrote: > Also, I don't think a Display setting should affect > how my program renders to a file. ... > The bottom line is that my original Qt code was good enough > for Linux but not for Windows. In the end it will depend on whether Cl

Re: [Interest] Text is not being anti-aliased.

2015-01-30 Thread william.croc...@analog.com
On 01/30/2015 11:56 AM, Jason H wrote: > Back in Qt4, (the last time I wrestled with this issue - Win XP) > there was a setting in Windows about anti-aliased fonts. > Qt respected that setting, unless you explicitly told Qt to override it. >I think you're in a similar situation. > Sure enough, If

Re: [Interest] SDKMaintenanceTool on headless systems?

2015-01-30 Thread Ian Monroe
On Fri, Jan 30, 2015 at 8:53 AM, Jason H wrote: > I need to install Qt (with commercial Charts) to a headless server > (CentOs). The online installer is GUI. This is an issue. How can I get the > SDK installed? > (Server qt apps use "-platform minimal" (for generating Charts in Pdfs), > or no GU

Re: [Interest] Text is not being anti-aliased.

2015-01-30 Thread Jason H
Back in Qt4, (the last time I wrestled with this issue - Win XP) there was a setting in Windows about anti-aliased fonts. Qt respected that setting, unless you explicitly told Qt to override it. I think you're in a similar situation. > Sent: Friday, January 30, 2015 at 10:56 AM > From: "william

[Interest] SDKMaintenanceTool on headless systems?

2015-01-30 Thread Jason H
I need to install Qt (with commercial Charts) to a headless server (CentOs). The online installer is GUI. This is an issue. How can I get the SDK installed? (Server qt apps use "-platform minimal" (for generating Charts in Pdfs), or no GUI libraries at all (QtNetwork/QtSql)) Thanks ___

[Interest] QCommandLine parser: why can't value() return positional arguments?

2015-01-30 Thread Jason H
This is my first use of the new class and I think it's missing a rather obvious feature. If I parser.addPositionalArgument("key", ...) why can't I then return it with parser.value(key)? When I try to use .value(key) I get: QCommandLineParser: option not defined: "key". It would be very desira

[Interest] Text is not being anti-aliased.

2015-01-30 Thread william.croc...@analog.com
Hello: I have code to create a PNG file from a QGraphicsScene. When I run this on Linux, text is anti-aliased. This is good. When I run this on Windows, text is NOT anti-aliased. This is bad. I would like the text to be anti-aliased. Am I doing something wrong? Is this a Windows bug? Is there a w

Re: [Interest] QML Text.Fit question

2015-01-30 Thread Curtis Mitch
If you're already using a rectangle to determine the size of the text, why not use one half the size to determine text that should be half the size? Besides that, there's probably not a better way to achieve what you're after, other than exposing the font size. Another option to consider, if yo

Re: [Interest] QT API wrapper around std:: containers?

2015-01-30 Thread Felix morack
the idea was to create a wrapper for all the needed containers individually, like so: class myvec : std::vector < T > { auto append(const auto& v) { push_back(v); } auto append(auto&& v) { push_back(v); } ... 2015-01-30 12:28 GMT+01:00 Konstantin Tokarev : > > > 29.01.2015, 23:35, "Felix morack"

Re: [Interest] QT API wrapper around std:: containers?

2015-01-30 Thread Konstantin Tokarev
29.01.2015, 23:35, "Felix morack" : > 1. yes, but that isnt stl based. i am talking about a drop-in replacement > that wraps a std:: container. > 2. Qt containers will only store maximal number of MAX_INT number of items, > ie 2147483647. > 3. because i have a lot of code written against the Qt

Re: [Interest] Error-const class QSerialPortInfo' has no member named 'serialNumber'

2015-01-30 Thread Nilesh Kokane
Hi Thiago, Thanks for your reply. On Fri, Jan 30, 2015 at 2:34 PM, Thiago Macieira wrote: > On Friday 30 January 2015 11:51:52 Nilesh Kokane wrote: > > Hi, > > > > I tried to cross-compile terminal code (example )for arm and getting the > > error as : ‘const class QSerialPortInfo’has no member

Re: [Interest] Error-const class QSerialPortInfo' has no member named 'serialNumber'

2015-01-30 Thread Thiago Macieira
On Friday 30 January 2015 11:51:52 Nilesh Kokane wrote: > Hi, > > I tried to cross-compile terminal code (example )for arm and getting the > error as : ‘const class QSerialPortInfo’has no member named ‘serialNumber’ > @ serialNumber = info.serialNumber(); but when the same code when compiled > on

Re: [Interest] QT API wrapper around std:: containers?

2015-01-30 Thread Felix morack
well, i guess i would 'fix' that by using either qint64 or quint64, after all that's why i do it. :) The container in question holds about ~10K elements on average and for most use cases. But now a user designed his data in such a way that the container has to go past the limit for a short time.

Re: [Interest] QT API wrapper around std:: containers?

2015-01-30 Thread André Somers
Felix morack schreef op 29-1-2015 om 21:05: > Hi, > > In light of the size limitations of Qt containers, a collegue > suggested writing an API wrapper around a std:: container. His idea > was to template-derive from a std::vector or std::map and implement > the Qt API as a wrapper around the std