Re: [Development] How to have equivalent of function over-riding in Qml

2014-07-10 Thread Alan Alpert
On Wed, Jul 9, 2014 at 8:41 PM, travik ravikiran.tallapa...@wipro.com wrote: Thanks for the very quick reply. Thank you for clarifying my understanding of correct derivation in Qml Regards, R.kiran Hi In continuation of the previous post - I now got it working to invoke the base class /

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Koehne Kai
-Original Message- From: development-bounces+kai.koehne=digia@qt-project.org [...] On the contrary, the end-user on Windows expects the application logs to be in a file somewhere near the executable if it's not a system service. So in my opinion the logs shouldn't write into

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Koehne Kai
-Original Message- From: development-bounces+kai.koehne=digia@qt-project.org [mailto:development-bounces+kai.koehne=digia@qt-project.org] On Behalf Of Thiago Macieira Sent: Wednesday, July 09, 2014 11:44 PM To: development@qt-project.org Subject: [Development] Cake and

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Dmitriy Purgin
Sorry for my vague statements :) Actually I wasn't talking about logging to file as a default for Windows. On the contrary I think this has to be done by each application individually -- someone needs as you rightly say 10 lines of code just to make sure everything went okay, others need a large

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Koehne Kai
-Original Message- From: development-bounces+kai.koehne=digia@qt-project.org [...] Here's what I propose: Heuristically determine at runtime. On all platforms (including Windows), use only the fact that a terminal is present. If a terminal is present, write to it using

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Denis Shienkov
Perhaps, it makes sense to select an output message sink in runtime? E.g. before QCoreApplication, by means of specify some QLogging flags, to override the installMessageHandler and so on? Maybe make sense to introduce a some pre-defined qInstallMessageHandler's() or something others functions,

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Tobias Hunger
Hi Thiago, Basically I agree with your statements, but I do not think we can rely on journald at this time. The first problem is of course systemd itself: Ubuntu is one of the biggest distros out there and we can not reasonably assume that to be running systemd before 14.04 is at the end of its

Re: [Development] Support for your evaluation of Qt

2014-07-10 Thread Ch'Gans
On 09/07/14 19:53, Andrea Barna wrote: Hi, I am Andrea from Digia Qt, I have recently taken over the Qt businessin your region. Hi Andrea, All the best for your new position! I noticed that you downloaded the trial version of Qt last year and Iwas wondering whether the evaluation went

Re: [Development] Support for your evaluation of Qt

2014-07-10 Thread Mitch Curtis
On 07/10/2014 12:20 PM, Ch'Gans wrote: On 09/07/14 19:53, Andrea Barna wrote: Hi, I am Andrea from Digia Qt, I have recently taken over the Qt businessin your region. Hi Andrea, All the best for your new position! I noticed that you downloaded the trial version of Qt last year and Iwas

Re: [Development] task based programming in Qt/C++ using continuation and modern C++

2014-07-10 Thread Milian Wolff
On Wednesday 09 July 2014 21:02:32 .. ink .. wrote: greetings and hope its acceptable to post what i am about to post here and apologies if it is not. Through my usage of Qt/C++, i came about a nicer way to run a simple tasks asynchronously while living within Qt and i decided to share it

Re: [Development] Adding support for version number comparisons

2014-07-10 Thread Keith Gardner
On Sat, May 31, 2014 at 2:00 PM, Thiago Macieira thiago.macie...@intel.com wrote: Em sex 09 maio 2014, às 11:36:08, Keith Gardner escreveu: I have been working on adding a class to QtCore (QVersion) to support storing version numbers, convert to/from QString, and having comparison

Re: [Development] Adding support for version number comparisons

2014-07-10 Thread Olivier Goffart
On Monday 02 June 2014 13:24:55 Richard Moore wrote: On 2 June 2014 13:12, Keith Gardner kreios4...@gmail.com wrote: On Mon, Jun 2, 2014 at 2:36 AM, Simon Hausmann simon.hausm...@digia.com wrote: I suggest a name that is more centric towards the _function_ of the class, comparison of

Re: [Development] Adding support for version number comparisons

2014-07-10 Thread Keith Gardner
On Thu, Jul 10, 2014 at 7:31 AM, Olivier Goffart oliv...@woboq.com wrote: On Monday 02 June 2014 13:24:55 Richard Moore wrote: On 2 June 2014 13:12, Keith Gardner kreios4...@gmail.com wrote: On Mon, Jun 2, 2014 at 2:36 AM, Simon Hausmann simon.hausm...@digia.com wrote: I suggest

Re: [Development] How to have equivalent of function over-riding in Qml

2014-07-10 Thread travik
Ok!. That's cool and it is Qml's implementation of VTable, I guess!. Thanks a lot again. Let me try it and come back. ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] Adding support for version number comparisons

2014-07-10 Thread Olivier Goffart
On Thursday 10 July 2014 07:53:29 Keith Gardner wrote: On Thu, Jul 10, 2014 at 7:31 AM, Olivier Goffart oliv...@woboq.com wrote: On Monday 02 June 2014 13:24:55 Richard Moore wrote: On 2 June 2014 13:12, Keith Gardner kreios4...@gmail.com wrote: On Mon, Jun 2, 2014 at 2:36 AM, Simon

Re: [Development] Adding support for version number comparisons

2014-07-10 Thread Kobus Jaroslaw
Hi All, With the current state of QVersion (patchset 35) I see the following issues: 1. operator() doesn't take the suffix into account (mentioned below) 2. There is no handling of sub version (you cannot differentiate 5.0.0, 5.0 and 5 - they are all equal) The idea which could resolve these

Re: [Development] Adding support for version number comparisons

2014-07-10 Thread Kobus Jaroslaw
Just looking at the topic of that thread, I suggest to name it: QVersionNubmer. QVersion may suggest some more, like description of the version or provide an info about different set of features. From:

Re: [Development] Make Qt WebEngine an add-on

2014-07-10 Thread Zeno Albisser
Hi, On 03/07/14 13:11, Konstantin Ritt wrote: Any public documents to read about the Qt WebEngine completeness state, limitations/know issues, TODOs, and so on? Sorry for the late reply. We accept bug reports in jira as every other project or module. Other than that we had some blog posts

Re: [Development] Make Qt WebEngine an add-on

2014-07-10 Thread Konstantin Ritt
Hi, 2014-07-10 17:03 GMT+03:00 Zeno Albisser zeno.albis...@digia.com: Other than that we had some blog posts earlier this year and we do have a wiki page here: http://qt-project.org/wiki/QtWebEngine We are currently focusing on getting all the desktop platforms (Linux/Mac/Win) up and

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Shawn Rutledge
What if we use qtlogging.ini (or equivalent on other systems) to control whether the logs go to the system log or not? I agree that every ordinary KDE user doesn't need to have unread logs taking up disk space, but maybe developers would like to turn on output to the journal permanently for

Re: [Development] How to have equivalent of function over-riding in Qml

2014-07-10 Thread m...@rpzdesign.com
Please do share when you get to the bottom of this. md On 7/10/2014 8:55 AM, travik wrote: Ok!. That's cool and it is Qml's implementation of VTable, I guess!. Thanks a lot again. Let me try it and come back. ___ Development mailing list

Re: [Development] Adding support for version number comparisons

2014-07-10 Thread Thiago Macieira
On Thursday 10 July 2014 07:53:29 Keith Gardner wrote: Currently, the QVersion::compare has an overload to pass a functor that performs the suffix comparison. Are you suggesting having a default in the operators that can be overwritten? No global state, please. -- Thiago Macieira -

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Thursday 10 July 2014 08:13:09 Koehne Kai wrote: -Original Message- From: development-bounces+kai.koehne=digia@qt-project.org [...] Here's what I propose: Heuristically determine at runtime. On all platforms (including Windows), use only the fact that a terminal is

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Thursday 10 July 2014 11:05:03 Tobias Hunger wrote: Hi Thiago, Basically I agree with your statements, but I do not think we can rely on journald at this time. Agreed. The first problem is of course systemd itself: Ubuntu is one of the biggest distros out there and we can not

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Thursday 10 July 2014 16:50:22 Shawn Rutledge wrote: What if we use qtlogging.ini (or equivalent on other systems) to control whether the logs go to the system log or not? I agree that every ordinary KDE user doesn't need to have unread logs taking up disk space, but maybe developers would

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Thursday 10 July 2014 07:56:28 Koehne Kai wrote: Provide a define QT_LOG_TO_CONSOLE that let QCoreApplication.h record whether it should log to console (QT_LOG_TO_CONSOLE=1), to the system (QT_LOG_TO_CONSOLE=0), or both (QT_LOG_TO_CONSOLE=2). Qmake can wrap this into convenience CONFIG

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Oswald Buddenhagen
On Thu, Jul 10, 2014 at 10:17:52AM -0700, Thiago Macieira wrote: On Thursday 10 July 2014 16:50:22 Shawn Rutledge wrote: On Windows I never liked CONFIG += console, because it's never in the .pro by default (usually not in manual tests or examples, and not in Creator-generated pro files

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Thursday 10 July 2014 19:34:59 Oswald Buddenhagen wrote: On Thu, Jul 10, 2014 at 10:17:52AM -0700, Thiago Macieira wrote: On Thursday 10 July 2014 16:50:22 Shawn Rutledge wrote: On Windows I never liked CONFIG += console, because it's never in the .pro by default (usually not in manual

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Shawn Rutledge
On 10 July 2014 19:17, Thiago Macieira thiago.macie...@intel.com wrote: On Thursday 10 July 2014 16:50:22 Shawn Rutledge wrote: What if we use qtlogging.ini (or equivalent on other systems) to control whether the logs go to the system log or not? I agree that every ordinary KDE user doesn't

Re: [Development] Support for your evaluation of Qt

2014-07-10 Thread Christian Gagneraud
On 10/07/2014 11:19 p.m., Mitch Curtis wrote: On 07/10/2014 12:20 PM, Ch'Gans wrote: On 09/07/14 19:53, Andrea Barna wrote: Hi, I am Andrea from Digia Qt, I have recently taken over the Qt businessin your region. Hi Andrea, All the best for your new position! I noticed that you

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Alejandro Exojo
El Wednesday 09 July 2014, Thiago Macieira escribió: === Log to both === Aside from the extra overhead, this causes systems that capture both stderr and the system log to record and display the same message twice. That's the source of task [3]. This is not an option. Why not? Task [3] is

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Alejandro Exojo
El Thursday 10 July 2014, Koehne Kai escribió: Provide a define QT_LOG_TO_CONSOLE that let QCoreApplication.h record whether it should log to console (QT_LOG_TO_CONSOLE=1), to the system (QT_LOG_TO_CONSOLE=0), or both (QT_LOG_TO_CONSOLE=2). Would it be too problematic to make the environment

[Development] Trying to fix qtmultimedia on Hurd

2014-07-10 Thread Lisandro Damián Nicanor Pérez Meyer
As you might know Debian has a Hurd port and almost all Qt5 is building there, except for QtMultimedia. The problem lies on V4L support. We tested that the rest of the compilation works by adding a v4l header to the gstreamer test (yes, it's a hammer-like solution) and thus disabling all

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Friday 11 July 2014 00:27:51 Alejandro Exojo wrote: Would it be too problematic to make the environment variable (QT_LOGGING_TO_CONSOLE, which already is in use) accept also a 2 for logging to both sources? Problematic, no. It can be easily implemented. But it's an option we discarded.

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Friday 11 July 2014 00:17:48 Alejandro Exojo wrote: El Wednesday 09 July 2014, Thiago Macieira escribió: === Log to both === Aside from the extra overhead, this causes systems that capture both stderr and the system log to record and display the same message twice. That's the

Re: [Development] Support for your evaluation of Qt

2014-07-10 Thread Thiago Macieira
On Friday 11 July 2014 10:05:03 Christian Gagneraud wrote: Boot To Qt for Embedded Linux (Not talking about android here), is based on Yocto (which is open-source), there exists a Qt5 layer (Dedicated Yocto sub-project), and I think that Digia should be the official maintainer of this

[Development] QML CheckBox, ComboBox QObject property bindings

2014-07-10 Thread Juan Navarro
Hi; I'm trying to better understand what are de limitations of the bindings when using QObject properties in my QML files, as it seems to work in a different way depending on the Component used. Say my app manages several instances of QObject* data items, which have 3 Q_PROPERTies: text, bool and

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Lisandro Damián Nicanor Pérez Meyer
On Thursday 10 July 2014 10:07:56 Thiago Macieira wrote: [snip] Creator must be able to handle reading from the system log before logging to the system is enabled for that system. On Linux, the code is already there, so we have to tell distributions *not* to enable journald yet. AFAIU from

Re: [Development] Support for your evaluation of Qt

2014-07-10 Thread Christian Gagneraud
On 11/07/2014 11:22 a.m., Thiago Macieira wrote: On Friday 11 July 2014 10:05:03 Christian Gagneraud wrote: Boot To Qt for Embedded Linux (Not talking about android here), is based on Yocto (which is open-source), there exists a Qt5 layer (Dedicated Yocto sub-project), and I think that Digia

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Alejandro Exojo
El Friday 11 July 2014, Lisandro Damián Nicanor Pérez Meyer escribió: AFAIU from this thread, journald support should not be enabled except regular users can read the output. Now what I'm missing here is: if Qt is built with journald support, can it be still be used if journald is not

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Thursday 10 July 2014 23:53:20 Lisandro Damián Nicanor Pérez Meyer wrote: On Thursday 10 July 2014 10:07:56 Thiago Macieira wrote: [snip] Creator must be able to handle reading from the system log before logging to the system is enabled for that system. On Linux, the code is already

Re: [Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

2014-07-10 Thread Thiago Macieira
On Friday 11 July 2014 07:45:23 Alejandro Exojo wrote: It might be even worse if systemd-shim provides that directory. Is it worth to try sd_journal_open() and see if it fails? Or check some other way if systemd actually launched the application? No and no. sd_journal_open might fail