[Interest] QPointF constructor from QPoint

2012-09-18 Thread Shriramana Sharma
Hello. I ran into this recently: Is there a reason that there is currently (4.8.1) no constructor for QPointF from QPoint? I can understand that QPointF should be explicitly converted to QPoint since it involves a loss of precision but just as integers are accepted everywhere that doubles are, it w

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Stephen Chu
On 9/18/12 7:12 PM, Thiago Macieira wrote: > On terça-feira, 18 de setembro de 2012 18.40.28, Stephen Chu wrote: >> On 9/18/12 8:30 AM, Josiah Bryan wrote: >>> I agree! I can't tell you how many times I've checked and rechecked my >>> code, only to find out it was a sig/slot mismatch all along. Cri

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Thiago Macieira
On terça-feira, 18 de setembro de 2012 18.40.28, Stephen Chu wrote: > On 9/18/12 8:30 AM, Josiah Bryan wrote: > > I agree! I can't tell you how many times I've checked and rechecked my > > code, only to find out it was a sig/slot mismatch all along. Crikey! :-) > > The only problem I have with the

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Stephen Chu
On 9/18/12 8:30 AM, Josiah Bryan wrote: > I agree! I can't tell you how many times I've checked and rechecked my > code, only to find out it was a sig/slot mismatch all along. Crikey! :-) The only problem I have with the new syntax is it doesn't handle the case when the slot require more argument

Re: [Interest] QtConFile

2012-09-18 Thread Igor Mironchik
> Why not use QSettings with this format as a custom format add in? Because not all nested structures can be described using QSettings::SettingsMap. I thought about it but came to the opinion that it's not so good idea. ___ Interest mailing list Inter

Re: [Interest] QtConFile

2012-09-18 Thread Scott Aron Bloom
Why not use QSettings with this format as a custom format add in? -Original Message- From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Igor Mironchik Sent: Tuesday, September 18, 2012 9:56 AM To:

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Stephen Chu
On 9/18/12 11:00 AM, Konrad Rosenbaum wrote: > On Tuesday 18 September 2012 14:21:58 Stephen Chu wrote: >> On 9/18/12 4:10 AM, Thiago Macieira wrote: How could I solve this? In Qt 4 I could specialize the signal using SIGNAL(valueChanged(int)), how could I do in Qt 5? >>>

Re: [Interest] QtConFile

2012-09-18 Thread Igor Mironchik
Hi. > Use Lua instead: > > cfg = { > stringValue = "string", > listOfStringValues = { "str1", "str2", "str3" }, > intValue = 100, > vecOfTags = { > stringValue = "string1", > intValue = 100 > } > vecOfTags2 = { > stringValue = "string2", >

Re: [Interest] QNetworkProxy auth support with QNetworkAccessManager

2012-09-18 Thread brian larochelle
> Everything works as expected, until i try to add proxy server support. It > works great without authentication, but a major problem comes up when I try > to add support for authentication. I’ve verified the proxy server with auth > using FireFox. > It appears the configuration of the proxy serv

Re: [Interest] QtConFile

2012-09-18 Thread Konstantin Tokarev
18.09.2012, 11:15, "Igor Mironchik" : > QtConfFile - it's C++/Qt library for reading and saving configuration files > in a special format. > > Configuration file format is a set of tags, which are surrounded by curly > brackets, with values. Tags can be without values, can have one, and can have

Re: [Interest] QScopedPointer with

2012-09-18 Thread interval1066
Yes. On , Alex Strickland wrote: On 2012/09/18 05:02 PM, Kandeler Christian wrote: > You are looking for QScopedPointer::reset(). Thank you, that was quick. Like this? yvreset(new a); -- Regards Alex ___ Interest mailin

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Thiago Macieira
On terça-feira, 18 de setembro de 2012 17.00.44, Konrad Rosenbaum wrote: > I'm not sure how to detect a misalignment between instance type and the > class name in the cast. E.g. if spinBox was not a QSpinBox, but a > QLineEdit. Then the compilation will fail. The connect() member template functio

Re: [Interest] QScopedPointer with

2012-09-18 Thread Alex Strickland
On 2012/09/18 05:02 PM, Kandeler Christian wrote: > You are looking for QScopedPointer::reset(). Thank you, that was quick. Like this? y.v.reset(new a); -- Regards Alex ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.or

Re: [Interest] QtConFile

2012-09-18 Thread Igor Mironchik
Hi. >> QtConfFile - it's C++/Qt library for reading and saving configuration >> files in a special format. >> >> Configuration file format is a set of tags, which are surrounded by >> curly brackets, with values. Tags can be without values, can have one, >> and can have several values. A sample co

Re: [Interest] QScopedPointer with

2012-09-18 Thread Kandeler Christian
You are looking for QScopedPointer::reset(). Christian (sorry about the format, sending via Outlook webmail) From: interest-bounces+christian.kandeler=digia@qt-project.org [interest-bounces+christian.kandeler=digia@qt-project.org] on behalf of A

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Konrad Rosenbaum
On Tuesday 18 September 2012 14:21:58 Stephen Chu wrote: > On 9/18/12 4:10 AM, Thiago Macieira wrote: > >> How could I solve this? > >> > >> In Qt 4 I could specialize the signal using SIGNAL(valueChanged(int)), > >> how could I do in Qt 5? > >> > > void (QSpinBox:: *signal)(int) = &QSpinBox

Re: [Interest] QtConFile

2012-09-18 Thread Konrad Rosenbaum
Hi, On Tuesday 18 September 2012 09:15:32 Igor Mironchik wrote: > QtConfFile - it's C++/Qt library for reading and saving configuration > files in a special format. > > Configuration file format is a set of tags, which are surrounded by > curly brackets, with values. Tags can be without values, c

[Interest] QScopedPointer with

2012-09-18 Thread Alex Strickland
Hi This is really a general C++ question, but I have looked long and hard and not worked it out. In the code below how should I initialise v.v using the QScopedPointer? #include class abc { }; class a : public abc { }; class x { public: QScopedPointer v; }; int main() { x y;

[Interest] QNetworkProxy auth support with QNetworkAccessManager

2012-09-18 Thread brian larochelle
Hello, I posted this question to qt project forums, but figured I would get better luck here. If posting in both places is bad form, let me know, and I will no longer do so. I'm using Qt 4.8.2 on embedded linux, I can reproduce with same version on desktop linux. I am subclassing QNetworkAcce

Re: [Interest] Qt 4.8.3 / MinGW: JavaScriptCore doesn't compile

2012-09-18 Thread R. Reucher
Correction to my last post: On Tuesday 18 September 2012 15:28:26 R. Reucher wrote: > I've now reached another problem... it seems that qmake from this build > doesn't work properly as it exposes *empty* values for QT_VERSION (and > QT_MAJOR_VERSION, QT_MINOR_VERSION etc.), but others like CONFIG

Re: [Interest] Qt 4.8.3 / MinGW: JavaScriptCore doesn't compile

2012-09-18 Thread R. Reucher
On Tuesday 18 September 2012 15:28:26 R. Reucher wrote: > I've now reached another problem... it seems that qmake from this build > doesn't work properly as it exposes *empty* values for QT_VERSION (and > QT_MAJOR_VERSION, QT_MINOR_VERSION etc.), but others like CONFIG or QT for > example have vali

Re: [Interest] Qt 4.8.3 / MinGW: JavaScriptCore doesn't compile

2012-09-18 Thread R. Reucher
On Sunday 16 September 2012 18:29:26 R. Reucher wrote: > On Sunday 16 September 2012 14:28:56 R. Reucher wrote: > > On Sunday 16 September 2012 14:02:44 you wrote: > > > https://codereview.qt-project.org/#change,34843 > > > > Thanks. Will retry with this patch applied (it's the same diff as > > su

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Thiago Macieira
On terça-feira, 18 de setembro de 2012 13.47.57, Sean Harmer wrote: > > I like this new syntax much better since it finds signal/slot mismatches > > at compile time. I used to miss the connection mismatch messages in the > > sea of my REALLY chatty logs. And pulling my hairs wondering why > > somet

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Sean Harmer
On Tuesday 18 September 2012 08:21:58 Stephen Chu wrote: > On 9/18/12 4:10 AM, Thiago Macieira wrote: > >> How could I solve this? > >> > >> In Qt 4 I could specialize the signal using SIGNAL(valueChanged(int)), > >> how > >> could I do in Qt 5? > >> > > void (QSpinBox:: *signal)(int) = &QSp

Re: [Interest] Plugin for VS2012

2012-09-18 Thread Haataja Ismo
Hi, VS-Addin for VS2012 is not yet available. Beta version for Qt5 will be available in few days. Also for Qt4.x there is a plan to publish one but no schedule set yet. BR, Ismo -- Ismo Haataja Senior Software Specialist   Digia Plc Elektroniikkatie 10, FI-90590 Oulu Finland Email: ismo.haat..

[Interest] [ANN] ODB C++ ORM 2.1.0 released, adds support for QUuid

2012-09-18 Thread Boris Kolpackov
Hi, I am pleased to announce the release of ODB 2.1.0. ODB is an open source object-relational mapping (ORM) system for C++. It allows you to persist C++ objects to a relational database without having to deal with tables, columns, or SQL and without manually writing any of the mapping code. Maj

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread André Somers
Op 18-9-2012 14:21, Stephen Chu schreef: > > I like this new syntax much better since it finds signal/slot mismatches > at compile time. I used to miss the connection mismatch messages in the > sea of my REALLY chatty logs. And pulling my hairs wondering why > something doesn't work. :) We have our

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Josiah Bryan
On Tue, Sep 18, 2012 at 8:21 AM, Stephen Chu wrote: > On 9/18/12 4:10 AM, Thiago Macieira wrote: > >> How could I solve this? > >> > >> In Qt 4 I could specialize the signal using SIGNAL(valueChanged(int)), > how > >> could I do in Qt 5? > > > > void (QSpinBox:: *signal)(int) = &QSpinBox::va

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Stephen Chu
On 9/18/12 4:10 AM, Thiago Macieira wrote: >> How could I solve this? >> >> In Qt 4 I could specialize the signal using SIGNAL(valueChanged(int)), how >> could I do in Qt 5? > > void (QSpinBox:: *signal)(int) = &QSpinBox::valueChanged; > QObject::connect(spinBox, signal, slider, &QSlider:

[Interest] [Qt4.8.1 QtWebKit]Memory usage problems

2012-09-18 Thread Fred Fung
Hi all, I use a subclass object of QWebView to visit http://www.youtube.com/leanback on my embedded linux platform (MIPS). Input any keyword in leanback's search page, then view the search results straight ahead always by “down” arrow-key. I found that the memory usage is kept in incre

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread Thiago Macieira
On terça-feira, 4 de setembro de 2012 04.59.19, 程梁 wrote: > Hi, there! I try to connect signals and slot in Qt 5 using new syntax. But I > have a question: how to connect overloaded signals to special slots? You need to load it to a variable first to resolve the overload. > For example, I have th

[Interest] QtConFile

2012-09-18 Thread Igor Mironchik
QtConfFile - it's C++/Qt library for reading and saving configuration files in a special format. Configuration file format is a set of tags, which are surrounded by curly brackets, with values. Tags can be without values, can have one, and can have several values. A sample configuration file i