Re: [Interest] Window ID of the current screen (root window)?

2020-11-20 Thread Richard Moore
would be just the same as in Qt 5. Cheers Rich On Fri, 20 Nov 2020 at 14:18, Giuseppe D'Angelo via Interest < interest@qt-project.org> wrote: > Il 20/11/20 14:55, Richard Moore ha scritto: > > I'd hope there's a way to get the actual connection being used, rather >

Re: [Interest] Window ID of the current screen (root window)?

2020-11-20 Thread Richard Moore
On Fri, 20 Nov 2020 at 07:58, Volker Hilsheimer wrote: > In Qt 6 there is no more Qt API to get the X11 root window for a display > (also note that QDesktopWidget as a whole is gone). > > So, you either have to go native if you rely on X11 specific data > structures (which the code does anyway, i

Re: [Interest] QFile::write(const QByteArray&) does not write, all data?

2018-05-12 Thread Richard Moore
On Sat, 12 May 2018 at 15:45, Roland Hughes wrote: > Any time a write comes up short, it is an error. > ​That is simply incorrect. It might not be how you would like it to behave, however it is the norm that short writes are allowed and should be handled by the callee. This is the case in POSIX,

Re: [Interest] Multiple QNetworkAccessManagers for a single app

2018-01-17 Thread Richard Moore
On 11 January 2018 at 18:41, Tom Isaacson wrote: > But is it a performance issue, a potential threading problem, what? > > We have a large codebase and this practice hasn't been followed, I'm > wondering what the potential impact is and whether it's worth fixing. > A few of the reasons: Using a

Re: [Interest] QUdpSpcket connection between two public peers behind firewalls

2017-12-18 Thread Richard Moore
On 18 December 2017 at 16:25, Thiago Macieira wrote: > On Monday, 18 December 2017 01:55:49 PST Nuno Santos wrote: > > I’m trying to establish a QUdpSocket connection between two peers that > are > > behind firewalls. > > > > From what I have been reading, one way of doing this is recurring to a

Re: [Interest] Mocking Network calls in code using QNetworkAccessManager

2017-05-18 Thread Richard Moore
On 18 May 2017 at 11:35, Shantanu Tushar wrote: > Any recommendations on how to do I achieve the unit test without > needing network access? > ​Here's an example: ​https://github.com/richmoore/qt-examples/tree/master/qcustomnetworkreply​ and a discussion of how it works: https://blogs.kde.org/

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-30 Thread Richard Moore
On 29 March 2017 at 21:23, Thiago Macieira wrote: > On quarta-feira, 29 de março de 2017 08:57:06 PDT Jan 'Koviš' Struhár > wrote: > > Is 3DES a poor cipher too? The server only appears to support RC4-MD5, RC4- > SHA, and DES-CBC3-SHA. > > ​3DES is poor and has various problems (e.g. sweet32, cr

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-29 Thread Richard Moore
On terça-feira, 28 de março de 2017 09:28:17 PDT Richard Moore wrote: > > > ​There isn't a bug in Qt here. The server isn't transmitting the full > > > chain > > > as it's required to. You can bypass the error in the normal way if you > > > real

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-28 Thread Richard Moore
On 28 March 2017 at 17:09, Thiago Macieira wrote: > Em terça-feira, 28 de março de 2017, às 08:02:46 PDT, Jan 'Koviš' Struhár > escreveu: > > On 03/28/2017 09:10 AM, Thiago Macieira wrote: > > > Em segunda-feira, 27 de março de 2017, às 23:58:32 PDT, Jan 'Koviš' > > > Struhár > > > > > > escreveu

Re: [Interest] Qt World Summit recordings 2016 are finally here

2016-12-16 Thread Richard Moore
On 16 December 2016 at 12:57, Giuseppe D'Angelo wrote: > Il 16/12/2016 12:46, Carl Engh ha scritto: > > Just wanted to let you all know that the Qt World Summit 2016 recordings > > can be found here: https://www.qt.io/qtws16/ > > > > > > > > PS! You need a Qt account to access them. > > But... wh

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-18 Thread Richard Moore
On 18 September 2016 at 18:23, Roland Hughes wrote: > >> > > Hi, > > Is it possible to use Qt-based applications on OS X that run with elevated > privileges (= as root), in general and if they need to connect to the > user's session dbus? > > --- > > Typically you need to look at QApplication doc

Re: [Interest] ThreadedFortune example extending to send message forever

2016-09-05 Thread Richard Moore
On 5 September 2016 at 15:38, Viktor Engelmann wrote: > Do you hard-code the client side port number? the same > client-IP/client-Port/server-IP/server-Port combination cannot be used > again within 2 minutes after a disconnect - the operating system suppresses > that. That is to prevent late pac

Re: [Interest] Thoughts on a 'proper' (or standard) file/io API for QML?

2016-08-10 Thread Richard Moore
Another set of js file API already exist: https://developer.mozilla.org/en-US/docs/Web/API/FileReader Rich. On 10 August 2016 at 16:09, Jason H wrote: > I know it's not a normal thing, but occasionally in QML we need to access > files. Exposing an object is not hard, but it would be really good

Re: [Interest] android and openSSL, google-store is complaining

2016-03-31 Thread Richard Moore
On 31 March 2016 at 20:23, maitai wrote: > Hello, > > Just received a long message from g-play basically saying: > > Please migrate your app(s) to OpenSSL 1.02f/1.01r or higher as soon as > possible and increment the version number of the upgraded APK. Beginning > July 11, 2016, Google Play will

Re: [Interest] Enabling OpenSSL on a shared build of Qt

2016-03-03 Thread Richard Moore
On 3 March 2016 at 07:50, Koehne Kai wrote: > > Ah, I missed to that you're talking about OS X. There the system OpenSSL > version should work - though it's very old (0.9.8y IIRC). You get these > warnings though because Qt checks for newer API. It's a runtime warning > though, basic SSL should

Re: [Interest] Qt5 and libressl

2015-11-12 Thread Richard Moore
On 12 November 2015 at 20:14, Diego Iastrubni wrote: > So... the official statement from Qt is that elliptic curves is a ... > "safe" encryption to be used in the wild...? > > ​We provide facilities that let you choose which ciphersuites are enabled. We also support plain text. ​ > (still reme

Re: [Interest] Memory leak problem in a Qt App

2015-11-03 Thread Richard Moore
On 3 November 2015 at 09:47, Etienne Sandré-Chardonnal < etienne.san...@m4x.org> wrote: > I have found this blog post: > > https://dragotin.wordpress.com/2014/08/14/monitor-the-qobject-tree-of-a-qt-app/ > > I will try using these callbacks to monitor the QObject tree. They are > absolutely undocum

Re: [Interest] Is there a well-defined relationship between QScreen and QDesktopWidget?

2015-07-21 Thread Richard Moore
On 21 July 2015 at 13:28, Sze Howe Koh wrote: > Hello, > > Is it safe to assume that, for a given value of 'i', > QGuiApplication::screens()[i] and QDesktopWidget::screen(i) refer to the > same physical screen? > > ​It's certainly the case at the moment: http://code.woboq.org/qt5/qtbase/src/widge

Re: [Interest] Different SSL Library than system provided?

2015-06-29 Thread Richard Moore
On 29 June 2015 at 19:30, Allan Sandfeld Jensen wrote: > > You must be using a Qt deployed alongside your application. You can then > > just modify qsslsocket_openssl_symbols.cpp to search for your deployed > > libssl.so.1 and libcrypto.so.1. > > I would assume LD_LIBRARY_PATH would also work on

Re: [Interest] What are the plans for moving https://gitorious.org/qt/qt3d.git

2015-03-18 Thread Richard Moore
On 18 March 2015 at 10:32, Samuel Stirtzel wrote: > 2015-03-18 11:20 GMT+01:00 Richard Moore : > > I can connect using gnutls just fine: > > > > On my Kubuntu 14.04.2 LTS box it doesn't work so well: > It looks as if your certificat

Re: [Interest] What are the plans for moving https://gitorious.org/qt/qt3d.git

2015-03-18 Thread Richard Moore
I can connect using gnutls just fine: mindy:~ # gnutls-cli code.qt.io Processed 164 CA certificate(s). Resolving 'code.qt.io'... Connecting to '54.77.201.214:443'... *** Non fatal error: A TLS warning alert has been received. *** Received alert [112]: The server name sent was not recognized - Cert

Re: [Interest] xcb: moved mouse to .... spamming console

2015-02-21 Thread Richard Moore
On 21 February 2015 at 11:12, Guido Seifert wrote: > I doubt your explanation. :-) > Reason 1: When I discovered this, I did not have a qtlogging.ini anywhere > in my system. > Reason 2: > > > qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp: > qDebug("xcb: moved mouse to %4d, %4d; button stat

Re: [Interest] Logging meta call events

2015-02-17 Thread Richard Moore
On 17 February 2015 at 23:41, Bernhard wrote: > > > This would not allow me to integrate the findings into my custom state > > > engine log (which also contains transitions and a lot more things in > > > chronological order). > > > > The hook itself would. See qsignalspy.cpp for how to install it

Re: [Interest] Strange QWebSocket/QTcpServer interaction... Bug in Firefox?

2014-12-21 Thread Richard Moore
On 21 December 2014 at 19:30, Guido Seifert wrote: > However, each time my QTcpServer also fires and gives me another > QTcpSocket. > Nothing ever comes through this new QTcpSocket... but it is there and a > memory leak. > Browsers can (and do) pre-emptively connect to servers if they think they

Re: [Interest] How to trust certificates for QWebPage

2014-05-27 Thread Richard Moore
On 27 May 2014 08:11, Koehne Kai wrote: > > I'm 95% sure that Qt on Windows does check directly against the Windows > certificate API, instead (in addition to?) of OpenSSL's internal one. > We use the certificates in the windows CA store yes. There is no internal CA store in openssl. Rich.

Re: [Interest] How to trust certificates for QWebPage

2014-05-27 Thread Richard Moore
On 27 May 2014 02:31, Tom Isaacson wrote: > That's the point - it's our distro because we manufacture a device with > embedded Linux but I don't know what certificates I need (if any) or where > to get them. > > I've tried complaining to myself but I just refuse to listen :) > Maintaining a CA b

Re: [Interest] How to trust certificates for QWebPage

2014-05-26 Thread Richard Moore
On 26 May 2014 19:42, Tom Isaacson wrote: > I don't understand that first sentence. What do you mean by "your server"? > If I'm trying to use https on, for example, Twitter, how do I create a > certificate for it? > I assumed from your description you were trying to get your embedded device to c

Re: [Interest] How to trust certificates for QWebPage

2014-05-26 Thread Richard Moore
What you need to do is create your own CA certificate, then generate a leaf certificate that is signed by it for your server. You then get the QNetworkAccessManager that you're using to load the content for your QWebPage and get its QSslConfiguration. Finally use setCaCertificate on the configurati

Re: [Interest] Qt Resource Compiler - why does it randomize the order of items?

2014-05-19 Thread Richard Moore
On 19 May 2014 09:18, Ola Røer Thorsen wrote: > Hi, > > If I call rcc (the Qt Resource Compiler) twice using the exact same input, > the resulting .cpp files are never exactly the same. They are all > completely valid, just the ordering of "items" inside is different. I'm > just curious, why? > >

Re: [Interest] QPixmapCache Simple Usage Fails

2014-05-18 Thread Richard Moore
On 18 May 2014 21:22, Durango wrote: > The image damage is what I would expect if the pixmap was pointing to free > memory. But QPixmapCache::insert is supposed to make a copy of the pixels, > right? > > No, QPixmap is implicitly shared, so it just keeps an instance of the QPixmap it caches. I'd

Re: [Interest] Qt debugging techniques?

2014-02-15 Thread Richard Moore
Oh, and I forgot to say - run gammaray! https://www.kdab.com/kdab-products/gammaray/ Cheers Rich. On 15 February 2014 15:42, Richard Moore wrote: > A few useful things: > > You can set the QT_FLUSH_PAINT environment variable to see which parts of > your widgets are getting repain

Re: [Interest] Qt debugging techniques?

2014-02-15 Thread Richard Moore
A few useful things: You can set the QT_FLUSH_PAINT environment variable to see which parts of your widgets are getting repainted. You can set the QT_DEBUG_PLUGINS environment variable to see what's happening when Qt loads plugins (E.g. image formats) You can view all the requests passing throug

Re: [Interest] libeay32.dll - The Ordinal 4369 could not be located

2014-01-24 Thread Richard Moore
On 24 January 2014 14:34, Phil Hannent wrote: > I have a version 1.0 that I can bundle next to the application and to > use that. It would certainly be helpful to have the ability to toggle > where QLibrary searches in a bid to remove potential security and > usability issues, however that's clear

Re: [Interest] libeay32.dll - The Ordinal 4369 could not be located

2014-01-24 Thread Richard Moore
On 24 January 2014 13:27, Till Oliver Knoll wrote: > And even if you don't connect to those services, QWebKit will still try to > resolve that OpenSSL library - or is that a deferred initialisation until a > https connection is attempted? Then you would be lucky, because that would > mean you c

Re: [Interest] libeay32.dll - The Ordinal 4369 could not be located

2014-01-24 Thread Richard Moore
On 24 January 2014 12:20, Phil Hannent wrote: > > However could you explain how QtWebkit is able to view https pages > when the libeasy32.dll is not in my path or next to the application? It must be located in one of the many locations that are searched. On linux I'd suggest you use strace to che

Re: [Interest] libeay32.dll - The Ordinal 4369 could not be located

2014-01-24 Thread Richard Moore
On 24 January 2014 11:07, Phil Hannent wrote: > On 24 January 2014 10:57, Soroush Rabiei wrote: >> libeay32.dll belongs to OpenSSL library. I think you have to find which DLL >> your code links against and copy it beside your application. That will fix >> all (except legal possible issues). You c

Re: [Interest] there should be a function to allow follow redirections

2013-12-14 Thread Richard Moore
On 13 December 2013 12:53, iMath <2281570...@qq.com> wrote: > The Network Access API does not by default follow redirections, ok ,but > there should be a function to allow follow all redirections. > Although we can check if there is a redirect with the > QNetworkRequest::RedirectionTargetAttribute

Re: [Interest] QNetworkAccessManager and HTTP persistent connection

2013-11-23 Thread Richard Moore
On 23 November 2013 13:45, iMath <2281570...@qq.com> wrote: > HTTP 1.1 supports persistent connection by default, so I want to send my a > second http request using the same connection that was setup when the first > HTTP request was made. how can this be achieved through Qt? > > If I simply make t

Re: [Interest] Qt based LRU container?

2013-10-19 Thread Richard Moore
On 19 October 2013 18:43, Mark wrote: > Does anyone know of an LRU based container for Qt? I'm specifically > looking for an implementation that notifies me when something gets > removed due to LRU kicking in. QCache would be nearly OK for my needs, > but it doesn't notify me when something drops

Re: [Interest] Long running application with database connection

2013-10-09 Thread Richard Moore
On 9 October 2013 11:27, Marc Schmitzer wrote: > While this works well most of the time, we occasionally have queries > fail with "MySQL server has gone away" errors. We know that the mysqld > process has indeed *not* gone away, and re-opening the connection works. > > My theory is that the initia

Re: [Interest] qt on git dev branch does not compile for mips

2013-09-24 Thread Richard Moore
On 24 September 2013 12:46, Mandeep Sandhu wrote: > Do you need QtWebkit for your tests? If not, you could disable it while > configuring Qt. This error is coming from the v4 engine used in Qt Declarative, not the webkit jit. Rich. ___ Interest mailing

Re: [Interest] Fwd: Is there a way to mock the QNAM?

2013-09-07 Thread Richard Moore
On 7 September 2013 10:58, Alejandro Exojo wrote: > El Martes, 3 de septiembre de 2013, André Somers escribió: >> It's an example of good API design, if you ask me: the public API to use >> is not the same as the (protected) API to extend the class. These are >> different tasks, and they should ha

Re: [Interest] QSQLQuery bindValue to SELECT WHERE IN

2013-04-09 Thread Richard Moore
On 9 April 2013 16:57, Scott Aron Bloom wrote: > It will depend the server backend.. However in general, I have never been > successful (not just in Qt, at all) in binding for “lists” That's correct, a bound parameter can only hold a single value. There are some evil tricks you can do however, fo

Re: [Interest] QWebFrame::toHtml() is encoding <> automatically

2013-04-02 Thread Richard Moore
On 2 April 2013 12:36, Aaron Lewis wrote: > Below is a testing php script, > > echo $_GET['abc'], ""; > echo htmlentities($_GET['abc']); > ?> > > If I retrieve the contents of that page with chromium browser, showing > the source code reveals contents like this: > > <><> > > But with QWeb

Re: [Interest] SslServer issues

2013-03-02 Thread Richard Moore
} > } > QSslSocket *sslsock = (QSslSocket*) sender(); > if (m_ServerConfig.ignoreSslErrors) { > *m_flogger << UNQL::LOG_WARNING << "There were SSL errors but server > is configured to ignore them all" << UNQL::eom; > *m_clogge

Re: [Interest] SslServer issues

2013-02-23 Thread Richard Moore
On 21 February 2013 18:32, Francesco Lamonica wrote: > i've implemented a simple SslServer inheriting from QTcpServer and > overriding the incomingConnection() as suggested from the documentation. > However i am stumbling on a strange problem: QSslSocket fires correctly the > sslErrors() signal fo

Re: [Interest] [gnutls-help] ANNOUNCE: Qt Certificate Addon

2012-12-22 Thread Richard Moore
On 22 December 2012 10:59, Nikos Mavrogiannopoulos wrote: > Everything that works with opensc should be ok with gnutls. I test RSA > with http://www.gooze.eu/feitian-epass-pki-token or smart card-hsm > http://www.opensc-project.org/opensc/wiki/SmartCardHsm for ECDSA. That one seemed to be discont

Re: [Interest] [gnutls-help] ANNOUNCE: Qt Certificate Addon

2012-12-22 Thread Richard Moore
On 20 December 2012 15:14, Richard Moore wrote: >> I'd also miss key generation on smart card, but this may not be a >> popular use-case for a first release. As I see the API it can easily >> accommodate that in the future. > > Yes, it's totally feasible to add t

Re: [Interest] [gnutls-help] ANNOUNCE: Qt Certificate Addon

2012-12-20 Thread Richard Moore
On 19 December 2012 16:49, Nikos Mavrogiannopoulos wrote: > On Sun, Dec 16, 2012 at 10:18 PM, Richard Moore wrote: > >> What is it? >> === >> Qt Certificate Addon is a framework for creating X.509 certificates using >> Qt. Unlike the read-only support for c

Re: [Interest] [HELP]How to open an Oracle database with "sysdba" role inQt?

2012-12-19 Thread Richard Moore
On 19 December 2012 13:26, Till Oliver Knoll wrote: > 2012/12/19 Xiaognag Wang : > Mapping that knowledge to Qt leads me to: > > http://doc.qt.digia.com/qt/qsqldatabase.html#setConnectOptions > > > That's what I get from a 2 minute Google session, mixed with a sound > level of assumptions and ed

[Interest] ANNOUNCE: Qt Certificate Addon

2012-12-16 Thread Richard Moore
I noticed that this was messed up. Trying again. What is it? === Qt Certificate Addon is a framework for creating X.509 certificates using Qt. Unlike the read-only support for certificates that's included in the SSL module this API allows new certificates, keys and signing requests to be

[Interest] ANNOUNCE: Qt Certificate Addon

2012-12-16 Thread Richard Moore
What is it? === Qt Certificate Addon is a framework for creating X.509 certificates using Qt. Unlike the read-only support for certificates that's included in the SSL module this API allows new certificates, keys and signing requests to be created. Features * Easy to use Qt-styl

[Interest] Examples from my SSL devdays talk

2012-11-16 Thread Richard Moore
Hi All, I've had a few requests for the examples from my devdays talk earlier this week already, so to save time I've uploaded the examples to https://gitorious.org/qt-examples/qt-examples/trees/master/ssl-examples My intention is to tidy a few details up and make them part of the main Qt documen

Re: [Interest] [Qt5 Beta] qmake: *.ui files not generated (uic not called)? [SOLVED]

2012-09-02 Thread Richard Moore
On 2 September 2012 11:44, Till Oliver Knoll wrote: > Am 01.09.12 12:24, schrieb Till Oliver Knoll: >> Am 01.09.2012 um 11:54 schrieb Till Oliver Knoll >> : > However I *think* I found the solution: I daringly added 'widgets' (I > simply guessed!) to the QT configuration, as in: > >QT += core

Re: [Interest] Double destruction of Qt objects in Qt example code?

2012-08-19 Thread Richard Moore
On 19 August 2012 16:18, Till Oliver Knoll wrote: > However it never occured to me to actually try such a thing. I mean, > what would be a practical scenario where one wanted to explicitly call a > d'tor? So clean up resources before the actual object gets destroyed > (assuming that the code insid

Re: [Interest] Qt5 - my hopes for when the dust settles...

2012-08-18 Thread Richard Moore
On 18 August 2012 16:32, Alan Ezust wrote: > On Thu, Aug 16, 2012 at 2:54 AM, Mark Summerfield wrote: >> - One or more official language bindings using the introspection API, >> e.g., for Python and for Java. > > Qt's Javascript would be much more useful if wrappers for all the Qt > classes wer

Re: [Interest] Qt5 - my hopes for when the dust settles...

2012-08-16 Thread Richard Moore
On 16 August 2012 13:12, Mark Summerfield wrote: > Hi Thiago, > > On Thu, 16 Aug 2012 13:07:08 +0200 > Thiago Macieira wrote: >> On quinta-feira, 16 de agosto de 2012 10.54.30, Mark Summerfield wrote: >> > - High-level support for client/server programming with the middleware >> > able to be st

Re: [Interest] QNetworkAccessManager - how to enforce authentication?

2012-08-10 Thread Richard Moore
On 10 August 2012 02:17, Alex Malyushytskyy wrote: > Even though if it does not sound right for that specific case ( my > experience with web programming is limited, so I do not judge it) > i guess there might be other cases when you might want to reauthorize > user from the application side. See

Re: [Interest] QNetworkAccessManager - how to enforce authentication?

2012-08-09 Thread Richard Moore
On 9 August 2012 03:34, Alex Malyushytskyy wrote: > user will not be requested for authentication second time, > instead QNetworkReply signal finished() is emitted with error > "Connection closed". Fire up wireshark or similar and check the response code your server provides when it gets these r

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-09 Thread Richard Moore
On 9 August 2012 12:52, Lorn Potter wrote: > They are part of this. 3 tons of CI servers are heading north in the coming > weeks/months. Are Rohan and Jason in the crate too? Rich. ___ Interest mailing list Interest@qt-project.org http://lists.qt-proj

Re: [Interest] Where are the USER properties of Qt-provided QObjects documented?

2012-07-27 Thread Richard Moore
On 26 July 2012 18:06, Stephen Kelly wrote: > On Thursday, June 28, 2012 00:40:18 K. Frank wrote: >> Where in the documentation (not the source code) can I find out which >> of the properties of a standard Qt QObject class is the designated >> USER property? > > I think this is a bug. Please file