Re: [Interest] How do Events Cascade to Child Widgets
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 your receiver in allWidgets() and just do a sendEvent(...). This will even work for moved/resized qt widgets, for the events are directly send to the widgets. But you must have put in a name for the objects. I'm on windows so the next levels are system hooks for recording and SendEvent or alike for sending events. Though i haven't tried this yet, i except them to be received from QApplication as normal user events, thus beeing forwarded as any other event, to a receiver who feels responsible for this event, e.g. a QLineEdit with focus or a QPushButton at the mouse position. Doing it this way, you'll surely not get the still-works-with-moved-resized feature, though. alex -- /* * BOFH excuse #24: * * network packets travelling uphill (use a carrier pigeon) */ signature.asc Description: PGP signature ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt Application deployment across platforms
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 like that of HTML5 application.? No, it can't. You need to recompile per platform. Even QML applications need recompilation because you can't have a pure QML application. There's no interpreter for it, except maybe on Blackberry 10 or SailfishOS. But we should be trying to get there, IMO. The new qml tool (just qml, as opposed to qmlscene/qmlviewer) is intended for that. https://codereview.qt-project.org/#change,43540 It can be used as a shebang handler on Linux/Unix platforms, and as the default application to handle the .qml file type when you double-click a qml file in the file manager on all 3 desktop platforms. We should also make sure that it can be installed as an application on Android and iOS, and that it will show a file dialog by default so you can pick your qml file if it was not given. But AFAIK on iOS and Android it's not straightforward to put an icon on the home screen which simply points to an arbitrary file and uses the file association mechanism to launch an application to open it. Maybe we can expect this situation to be improved later, if the vendors want us to take tablets seriously as real computers. Even if all platforms supported that, it's still hard to package a whole application in a single QML file, although it can be done. Typically there are multiple QML files, images and other resources. You can get by without icon images if you use Unicode characters for all the icons though; if you can't find suitable glyphs, you can use a dingbat font, but then the user might not have the font pre-installed. QML could perhaps benefit from some kind of binary embedding method (base85 like Postscript has, base64 or uuencoding as in email attachments, or the like). But usually you would tend to need some kind of bundle. Then having an executable is only a little bit bulkier, at least until you conclude that you need to package a fixed version of Qt with it too. Then you are better off with static Qt and compiled-in resources to make a single file which is the entire application, and is as small as possible. Better yet, when we have the QML compiler finished you could use that. It's a slippery slope because of the lack of a cross-platform standard for some kind of script-bundle. That should have been solved already long ago, because there have been scripting languages for so long. But scripts have a bad rap for multiple reasons, even though some of the reasons are irrational. The question becomes, why do you always groan when you see that something which claims to be an application is written with Java or Air or VisualBasic or Python? I know that I do; and after my experience as a Java developer I know the reasons why we used t o say that groan is irrational, too. I still prefer applications to be as small and fast and have as few dependencies as possible, which is why the QML compiler will end up being quite important, IMO. But I also think there is a place for single-file QML utilities which can be launched by file association with the qml tool. A QML file can be much smaller than the executable that it generates, after all. The existence of Qt Quick Controls should make it easier than it was before. (disclaimer: those are my opinions, not necessarily anyone else's) ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Accessing the raw value of QQmlScriptString (QDeclarativeScriptString::script)
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 be, I guess. I don't have enough insight into how much overhead this would impose, though (there is no point in keeping the original context around if it's going to be discarded anyway, etc.). I still like passing just the actual string expression around, and delegating optimizaiton like precompiling it, setting up a proper context etc etc until the point it is used for validating the user-provided data. Another reason for this is to be able to treat both modules separately -- the fact that the validation also happens to use the QML engine behind the scene shall, IMHO, remain as an implementation detail. This was removed in commit aa25ad8d5f476d6db59012a122833ebe677eaf69 (Allow for future optimization by encapsulating the raw script data.). Unfortunately I do not remember the details of the optimizations being discussed at the time (it may have been related to memory consumption, or to pre-compiling QML, or to early prototypes of v4). Looks like I *can* get away with working with strings by extracting the actual script value roughly like this: QString text = QQmlExpression(scriptString).expression(); The only difference is that the expression text is now wrapped by (function $() { return XYZ }) where XYZ is the original expression. I could either strip this extra wrapping, or just append () to the end of the expression. So, shall I just stop worying about this and start passing QQmlScriptString instances around (and if so, why)? Or shall I keep my () hack for now? To me, the best course of action seems to be adding the script() accessor back, but one would have to check that the returned data do not include the wrapping, IMHO. With kind regards, Jan -- Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/ ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QAbstractEventDispatcher
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 not using the glib eventloop I set about re-implementing the event loop using the QAbstractEventDispatcher. I am concerned for two reasons: 1, Perhaps this isn't the correct approach at all? (Perhaps the libpurple should be in a different thread altogether ???). 2, There is a lack of good examples regarding Qt and 3rd party glib implementations for which I believe the class was designed for. I was ploughing ahead with it anyway on the basis that it would be a good exercise, however I am getting lost. Such as the registerTimer function [2], where is the timerId value from? I am using my own Id's so could I clash? Any advice/pointers would be appreciated. Regards Phil Hannent [1] https://hg.pidgin.im/soc/2013/phil/quail-redux/file/777509d81ef2/src/QuailEventLoop.cpp [2] http://harmattan-dev.nokia.com/docs/library/html/qt4/qabstracteventdispatcher.html#registerTimer-2 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Detecting Qt version in cmake
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 : greaterThan(QT_MAJOR_VERSION, 4)xxx If you use find_package(Qt) you can find out wether Qt3 or Qt4 was found with the variables QT4_INSTALLED and QT3_INSTALLED as documented in the manual. For Qt5 you'd have to use find_package(Qt5) anyway as thats not covered by the FindQt.cmake module yet. In addition, the if-command has operators to compare version numbers (VERSION_*), see http://cmake.org/cmake/help/v2.8.11/cmake.html#command:if for more details. Andreas ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Detecting Qt version in cmake
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? if(QT_VERSION_MAJOR EQUAL 4) # Qt4 code endif() Note though that it is possible to have both Qt 4 and Qt 5 in use in the same project: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/Qt4And5Automoc/CMakeLists.txt;h=0cc80fe73ff1d40433d0980358d3851a9a5065c8;hb=HEAD Thanks, Steve. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Detecting Qt version in cmake
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
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 connections (seems to be releated to receiving a EAGAIN error) until the first 6 are served (but i openend 20 connections at once from my testcode). Then it continues with the next 6 and i'm pretty sure the mainloop is not blocked, because when i pause with the debugger its always waiting inside exec(). This happens on Linux, i did not test yet with other operating systems. Anyone ran into something similar? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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 delay the notification of new incoming connecions until another one is handled? On 05.09.2013 13:04, Benjamin Zeller wrote: 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 connections (seems to be releated to receiving a EAGAIN error) until the first 6 are served (but i openend 20 connections at once from my testcode). Then it continues with the next 6 and i'm pretty sure the mainloop is not blocked, because when i pause with the debugger its always waiting inside exec(). This happens on Linux, i did not test yet with other operating systems. Anyone ran into something similar? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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 the following 6 and so on. What could possibly delay the notification of new incoming connecions until another one is handled? What does QTcpServer.maxPendingConnections() report? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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, 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 delay the notification of new incoming connecions until another one is handled? On 05.09.2013 13:04, Benjamin Zeller wrote: 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 connections (seems to be releated to receiving a EAGAIN error) until the first 6 are served (but i openend 20 connections at once from my testcode). Then it continues with the next 6 and i'm pretty sure the mainloop is not blocked, because when i pause with the debugger its always waiting inside exec(). This happens on Linux, i did not test yet with other operating systems. Anyone ran into something similar? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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 incomingConnection(). Creating the QTcpSocket manually. But maybe QTcpSockets can not be moved between threads? This is a opensource project so: incoming connection are not queued: https://github.com/bzeller/tufao/blob/master/src/priv/tcpserverwrapper.cpp#L28 socket is created here (without a parent): https://github.com/bzeller/tufao/blob/master/src/httpserver.cpp#L81 https://github.com/bzeller/tufao/blob/master/src/httpserver.cpp#L100 pushed to the thread: https://github.com/bzeller/tufao/blob/master/src/priv/workerthread.cpp#L56 I know moving the socket descriptor would be better but the design of the library does not really fit that approach. (From Qt 4.8.1) 2013/9/5 Benjamin Zeller zeller.benja...@web.de mailto:zeller.benja...@web.de 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 delay the notification of new incoming connecions until another one is handled? On 05.09.2013 13:04, Benjamin Zeller wrote: 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 connections (seems to be releated to receiving a EAGAIN error) until the first 6 are served (but i openend 20 connections at once from my testcode). Then it continues with the next 6 and i'm pretty sure the mainloop is not blocked, because when i pause with the debugger its always waiting inside exec(). This happens on Linux, i did not test yet with other operating systems. Anyone ran into something similar? ___ Interest mailing list Interest@qt-project.org mailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org mailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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 14:27, Benjamin Zeller wrote: 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 incomingConnection(). Creating the QTcpSocket manually. But maybe QTcpSockets can not be moved between threads? This is a opensource project so: incoming connection are not queued: https://github.com/bzeller/tufao/blob/master/src/priv/tcpserverwrapper.cpp#L28 socket is created here (without a parent): https://github.com/bzeller/tufao/blob/master/src/httpserver.cpp#L81 https://github.com/bzeller/tufao/blob/master/src/httpserver.cpp#L100 pushed to the thread: https://github.com/bzeller/tufao/blob/master/src/priv/workerthread.cpp#L56 I know moving the socket descriptor would be better but the design of the library does not really fit that approach. (From Qt 4.8.1) 2013/9/5 Benjamin Zeller zeller.benja...@web.de mailto:zeller.benja...@web.de 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 delay the notification of new incoming connecions until another one is handled? On 05.09.2013 13:04, Benjamin Zeller wrote: 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 connections (seems to be releated to receiving a EAGAIN error) until the first 6 are served (but i openend 20 connections at once from my testcode). Then it continues with the next 6 and i'm pretty sure the mainloop is not blocked, because when i pause with the debugger its always waiting inside exec(). This happens on Linux, i did not test yet with other operating systems. Anyone ran into something similar? ___ Interest mailing list Interest@qt-project.org mailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org mailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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 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 14:27, Benjamin Zeller wrote: 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 incomingConnection(). Creating the QTcpSocket manually. But maybe QTcpSockets can not be moved between threads? This is a opensource project so: incoming connection are not queued: https://github.com/bzeller/tufao/blob/master/src/priv/tcpserverwrapper.cpp#L28 socket is created here (without a parent): https://github.com/bzeller/tufao/blob/master/src/httpserver.cpp#L81 https://github.com/bzeller/tufao/blob/master/src/httpserver.cpp#L100 pushed to the thread: https://github.com/bzeller/tufao/blob/master/src/priv/workerthread.cpp#L56 I know moving the socket descriptor would be better but the design of the library does not really fit that approach. (From Qt 4.8.1) 2013/9/5 Benjamin Zeller zeller.benja...@web.de mailto:zeller.benja...@web.de 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 delay the notification of new incoming connecions until another one is handled? On 05.09.2013 13:04, Benjamin Zeller wrote: 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 connections (seems to be releated to receiving a EAGAIN error) until the first 6 are served (but i openend 20 connections at once from my testcode). Then it continues with the next 6 and i'm pretty sure the mainloop is not blocked, because when i pause with the debugger its always waiting inside exec(). This happens on Linux, i did not test yet with other operating systems. Anyone ran into something similar? ___ Interest mailing list Interest@qt-project.org mailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org mailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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 Firefox: - go to about:config - change the value for network.http.max-persistent-connections-per-server - if necessary, change also network.http.max-connections and network.http.max-persistent-connections-per-proxy ... but do not blame me for any performance penalty you might get! :-) Best Regards / Mit freundlichen Grüßen Rainer Wiesenfarth -- Software Engineer | Trimble Imaging Division Rotebühlstraße 81 | 70178 Stuttgart | Germany Office +49 711 22881 0 | Fax +49 711 22881 11 http://www.trimble.com/geospatial/ | http://www.inpho.de/ Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim Eingetragen beim Amtsgericht Darmstadt unter HRB 83893, Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer smime.p7s Description: S/MIME cryptographic signature ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTcpServer stop accepting connections
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 incomingConnection(). Creating the QTcpSocket manually. But maybe QTcpSockets can not be moved between threads? Yes, you can. The documentation note appears to be incomplete. You can move, provided you first unset the parent of that QTcpSocket. The sockets that QTcpServer returns are parented to itself by default. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center signature.asc Description: This is a digitally signed message part. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QAbstractEventDispatcher
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 and will freeze. Working on the assumption that the Windows version of Qt is not using the glib eventloop I set about re-implementing the event loop using the QAbstractEventDispatcher. Your assumption is correct. We don't use glib on Windows. We don't even search for it. 2, There is a lack of good examples regarding Qt and 3rd party glib implementations for which I believe the class was designed for. There are less than 10 people in the world that need to implement event dispatchers, including the people who wrote the ones in Qt. That's why it's not very documented: too much effort for too little gain. It's best just to read the code for the existing glib and Windows dispatchers and ask questions here and in dev@. We'll do what we can to help. I was ploughing ahead with it anyway on the basis that it would be a good exercise, however I am getting lost. Such as the registerTimer function [2], where is the timerId value from? I am using my own Id's so could I clash? [2] http://harmattan-dev.nokia.com/docs/library/html/qt4/qabstracteventdispatch er.html#registerTimer-2 Updated links: http://qt-project.org/doc/qt-5.1/qtcore/qabstracteventdispatcher.html#registerTimer-4 http://qt-project.org/doc/qt-4.8/qabstracteventdispatcher.html#registerTimer-2 The ID is allocated by the non-virtual overload, which then calls the virtual one. That is, QObject::startTimer calls this function: int QAbstractEventDispatcher::registerTimer(int interval, Qt::TimerType timerType, QObject *object) { int id = QAbstractEventDispatcherPrivate::allocateTimerId(); registerTimer(id, interval, timerType, object); return id; } [Qt 5 code; in Qt 4, there's no timer type] -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center signature.asc Description: This is a digitally signed message part. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QAbstractSpinBox::validate pos parameter
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 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Windows application runs with console window
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 console. I'm using Qt Creator 2.6.0, so maybe the GUI has changed and it's not exactly at the same place. I don't use QtCreator for building and running app. I use qmake + jom in console. You can also call FreeConsole() from windows.h in your main function, this removes the console under windows. Normally it's only necessary if you configured the project with CONFIG += console (useful for hybrid console/GUI apps) I will take it in mind. Thanks. By the way. I set icon to my application with QApplication::setWindowIcon and it doesn't work too... ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Best choice for android/iOS/Windows/Mac
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 attached screencast (https://bugreports.qt-project.org/secure/attachment/34614/Kazam_screencast_1.mp4) it shows how this issue occurs. -- Best Regards, Muhammad Bashir Al-Noimi ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Windows application runs with console window
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, Windows 7. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] SHSTOCKICONINFO not declared
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 http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] SHSTOCKICONINFO not declared
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 problem could be? Guido ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest