Re: [Interest] How do Events Cascade to Child Widgets

2013-09-05 Thread alexander golks
hi, do you want to just inject or - like me - record and play events for testing and simulation purpose? For recording you can override QApplication::eventFilter and store a copy of the event together with receiver name and class name. Later on you can play all recorded events by searching for

Re: [Interest] Qt Application deployment across platforms

2013-09-05 Thread Rutledge Shawn
On 4 Sep 2013, at 8:43 AM, Thiago Macieira wrote: On quarta-feira, 4 de setembro de 2013 06:37:07, Ramakanthreddy Kesireddy wrote: I would like to know if I develop a Qt application, can it be deployed across platforms like linux,OSX and Android without recompiling for Specific platform

Re: [Interest] Accessing the raw value of QQmlScriptString (QDeclarativeScriptString::script)

2013-09-05 Thread Jan Kundrát
On Wednesday, 4 September 2013 23:18:21 CEST, Michael Brasser wrote: The QQmlExpression constructor that takes a QQmlScriptString allows setting a custom context and scope object to replace the default one provided by the QQmlScriptString. Is this enough to accomplish what you need? Could

[Interest] QAbstractEventDispatcher

2013-09-05 Thread Phil Hannent
Good morning, I am trying to implement my own event loop. I am trying to use libpurple which uses glib with a Qt application I am developing [1]. On Linux the application runs fine. On windows the application is unstable and will freeze. Working on the assumption that the Windows version of Qt is

Re: [Interest] Detecting Qt version in cmake

2013-09-05 Thread Andreas Pakulat
Hi, On Thu, Sep 5, 2013 at 11:30 AM, Joseph W. Joshua jos...@megvel.me.kewrote: Hi all, When using cmake, how can one detect whether the Qt version in use is greater that Qt4? In qmake, for example, I can determine whether the Qt version is greater than Qt4 by using :

Re: [Interest] Detecting Qt version in cmake

2013-09-05 Thread Stephen Kelly
Joseph W. Joshua wrote: Hi all, When using cmake, how can one detect whether the Qt version in use is greater that Qt4? In qmake, for example, I can determine whether the Qt version is greater than Qt4 by using : greaterThan(QT_MAJOR_VERSION, 4)xxx Anyone know how to do this in cmake?

Re: [Interest] Detecting Qt version in cmake

2013-09-05 Thread Joseph W. Joshua
if(QT_VERSION_MAJOR EQUAL 4) # Qt4 code endif() Thanks, guys. Let me try this and see. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QTcpServer stop accepting connections

2013-09-05 Thread Benjamin Zeller
Hello, not sure if i just ran into a bug or if i do something wrong: Basically i have a QTcpServer accepting connections, after a connection comes in a QTcpSocket is created and pushed to a workerthread to handle it (moveToThread). But after 6 connections the QTcpServer stops accepting

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Benjamin Zeller
Hello again, ok after digging some more its clear that the E_AGAIN or E_WOULDBLOCK error means that there are no connections available to open. That makes no sense because i opened 20 connections in a row, but only the first 6 are handled and then the following 6 and so on. What could possibly

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Bob Hood
On 9/5/2013 5:49 AM, Benjamin Zeller wrote: Hello again, ok after digging some more its clear that the E_AGAIN or E_WOULDBLOCK error means that there are no connections available to open. That makes no sense because i opened 20 connections in a row, but only the first 6 are handled and then

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Etienne Sandré-Chardonnal
Hi, Did you see this in the doc?: *Note:* The returned QTcpSocket object cannot be used from another thread. If you want to use an incoming connection from another thread, you need to override incomingConnection(). (From Qt 4.8.1) 2013/9/5 Benjamin Zeller zeller.benja...@web.de Hello again,

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Benjamin Zeller
On 05.09.2013 14:09, Etienne Sandré-Chardonnal wrote: Hi, Did you see this in the doc?: *Note:*The returnedQTcpSocketobject cannot be used from another thread. If you want to use an incoming connection from another thread, you need to overrideincomingConnection(). In fact we did override

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Benjamin Zeller
Ok i just found out what the problem is. Its a feature of chrome and firefox, they only open a few connections to a server and reuse them later. Means even if i send 20 requests the browser will split them into bunches of 6. What a waste of time Thanks for your help. On 05.09.2013

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Constantin Makshin
Probably it's some kind of client-side protection from DoS-ing a web server by occupying all its network sockets. On Sep 5, 2013 6:15 PM, Benjamin Zeller zeller.benja...@web.de wrote: Ok i just found out what the problem is. Its a feature of chrome and firefox, they only open a few connections

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Rainer Wiesenfarth
From: Benjamin Zeller Ok i just found out what the problem is. Its a feature of chrome and firefox, they only open a few connections to a server and reuse them later. Means even if i send 20 requests the browser will split them into bunches of 6. [...] To change this behavior for

Re: [Interest] QTcpServer stop accepting connections

2013-09-05 Thread Thiago Macieira
On quinta-feira, 5 de setembro de 2013 14:27:22, Benjamin Zeller wrote: *Note:*The returnedQTcpSocketobject cannot be used from another thread. If you want to use an incoming connection from another thread, you need to overrideincomingConnection(). In fact we did override

Re: [Interest] QAbstractEventDispatcher

2013-09-05 Thread Thiago Macieira
On quinta-feira, 5 de setembro de 2013 10:43:31, Phil Hannent wrote: Good morning, I am trying to implement my own event loop. I am trying to use libpurple which uses glib with a Qt application I am developing [1]. On Linux the application runs fine. On windows the application is unstable

[Interest] QAbstractSpinBox::validate pos parameter

2013-09-05 Thread Etienne Sandré-Chardonnal
Dear all, Do you know what is the signification of the pos parameter of QAbstractSpinBox::validate ? Is it the current edit cursor position inside the string? How can it change the result? The manual is not very helpful for subclassing QAbstractSpinBox. Thanks, Etienne

Re: [Interest] Windows application runs with console window

2013-09-05 Thread Igor Mironchik
Hi. You can check this: 1) Are you sure you do not have CONFIG += console somewhere? I'm abolutely sure. There is no CONFIG += console in my project files within my app. 2) Go to the Projects view, look at run settings in your kit. There is a checkbox Run in terminal which activates a

Re: [Interest] Best choice for android/iOS/Windows/Mac

2013-09-05 Thread Muhammad Bashir Al-Noimi
On 09/05/2013 08:35 AM, alexander golks wrote: i think it's meant to be the other way around: #if defined(Q_OS_ANDROID) // rest of your code It doesn't fix the issue! Any way, I filed a bug report in this link https://bugreports.qt-project.org/browse/QTBUG-33294 may you please see the

[Interest] Windows application runs with console window

2013-09-05 Thread Igor Mironchik
I write an application. The common definitions in the project file are: TEMPLATE= app TARGET= application DESTDIR= .. QT += core gui network sql widgets CONFIG+= windows But when I run application I see the console (command prompt) window within my application. Why? I use Qt 5.1.0,MSVC2012,

[Interest] SHSTOCKICONINFO not declared

2013-09-05 Thread Guido Seifert
Hi, I am compiling Qt 5.1.2 (770893c) under Windows with MinGW 64bit. I just got: qwindowstheme.cpp 'SHSTOCKICONINFO' was not declared in this scope. Any ideas what the problem could be? Guido ___ Interest mailing list Interest@qt-project.org

Re: [Interest] SHSTOCKICONINFO not declared

2013-09-05 Thread Alexey Pavlov
This is known issue https://bugreports.qt-project.org/browse/QTBUG-33225 2013/9/6 Guido Seifert warg...@gmx.de Hi, I am compiling Qt 5.1.2 (770893c) under Windows with MinGW 64bit. I just got: qwindowstheme.cpp 'SHSTOCKICONINFO' was not declared in this scope. Any ideas what the