Re: [Interest] Constructor of QPrinter takes 25-50 seconds to execute

2015-11-27 Thread Syam Krishnan
On 11/27/2015 12:43 PM, Thiago Macieira wrote: 25 seconds is the exact time of a D-Bus method call timeout. 50 seconds would be two, back-to-back. Then that should be it. On KDE, I sometimes feel there's something wrong with dbus because at times even "shutdown" (from the menu) does not have

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread André Somers
Op 27/11/2015 om 17:15 schreef Igor Mironchik: Or is there a better way to do what I described? Thanks in advance, Can you point out to what the signals/slots do you want to have? I just need one slot in it to be able to trigger update of displayed columns for that item/row in the

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread Igor Mironchik
On 27.11.2015 16:50, Andrej Kacian wrote: On Fri, 27 Nov 2015 12:35:56 +0300 Igor Mironchik wrote: On 27.11.2015 12:19, Andrej Kacian wrote: Hello all, I have a class derived from QTreeWidgetItem, and would like it to be able to use Qt's signal/slot system.

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread Andrej Kacian
On Fri, 27 Nov 2015 17:20:18 +0100 André Somers wrote: > > > > As André Somers wrote why not to implement custom model for this? ... > > > You may also be able to just use a lambda function connected to the > changed signal of your data to do the same. At the point

Re: [Interest] Unable to make deb file of Qt 5.5 app in Ubuntu 14.04

2015-11-27 Thread Igor Mironchik
Hi, I guess that this is the same issue that I had already. This happens because Ubuntu uses QT_PLUGIN_PATH set in the system. Try to set this environment variable somewhere in the shell and run/build you application. Something like this: export QT_PLUGIN_PATH= for example in bashrc and

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread Andrej Kacian
On Fri, 27 Nov 2015 12:35:56 +0300 Igor Mironchik wrote: > On 27.11.2015 12:19, Andrej Kacian wrote: > > Hello all, > > > > I have a class derived from QTreeWidgetItem, and would like it to > > be able to use Qt's signal/slot system. > > > > Since QTreeWidgetItem is not

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread Andrej Kacian
On Fri, 27 Nov 2015 10:39:19 +0100 André Somers wrote: > > Or is there a better way to do what I described? > > > Perhaps, depending on what you really want to achieve. Instantiating > QObjects everywhere is quite expensive. If you have a lot of items in > your tree,

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread André Somers
Op 27/11/2015 om 15:01 schreef Andrej Kacian: On Fri, 27 Nov 2015 10:39:19 +0100 André Somers wrote: Or is there a better way to do what I described? Perhaps, depending on what you really want to achieve. Instantiating QObjects everywhere is quite expensive. If

Re: [Interest] Import C++ types to Javascript

2015-11-27 Thread Jason H
I just checked, it is a slot. I just feel like I'm missing something. Do I need to make a instance? var instance = new MyLib.Hash() ? var hash = instance.sha1("data") > Sent: Friday, November 27, 2015 at 7:50 PM > From: "Jérôme Godbout" > To: "Jason H" > Cc:

Re: [Interest] Import C++ types to Javascript

2015-11-27 Thread Jérôme Godbout
If your object is not a singleton you will need to create an instance to call the function on that object. I suggestion you keep your staticfunction call into a singleton. So you don't need an instance. > On Nov 27, 2015, at 8:11 PM, Jason H wrote: > > I just checked, it is a

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread Igor Mironchik
Hi, On 27.11.2015 12:19, Andrej Kacian wrote: Hello all, I have a class derived from QTreeWidgetItem, and would like it to be able to use Qt's signal/slot system. Since QTreeWidgetItem is not itself derived from QObject, can I safely inherit from QTreeWidgetItem and QObject at the same time?

Re: [Interest] Subclassing QTreeWidgetItem together with QObject

2015-11-27 Thread André Somers
Op 27/11/2015 om 10:19 schreef Andrej Kacian: Hello all, I have a class derived from QTreeWidgetItem, and would like it to be able to use Qt's signal/slot system. Since QTreeWidgetItem is not itself derived from QObject, can I safely inherit from QTreeWidgetItem and QObject at the same time?

Re: [Interest] Any plans to bring back/provide a replacement for GestureArea

2015-11-27 Thread Peter Klosowski
While each of those components provides some of the functionality that I need, they are not as well suited as GestureArea. This is due to the fact that I want to support multiple gestures on a custom QQuickItem: tap, tapAndHold, pan (one finger drag), pinch (two finger drag). This is rather

Re: [Interest] Any plans to bring back/provide a replacement for GestureArea

2015-11-27 Thread Federico Buti
Hi Peter, I think the functionality of the type was split among MouseArea, PinchArea and MultiPointTouchArea . Take a look at them and see if they fit your use case. Bests, F. On 27

[Interest] Any plans to bring back/provide a replacement for GestureArea

2015-11-27 Thread Peter Klosowski
Hello, I could really use a QML element that can detect arbitrary gestures. It seems that in Qt4, GestureArea used to do just that: http://doc.qt.io/qt-4.8/qml-gesturearea.html However, it appears that in Qt5, it has been removed. What was the rationale for that? Are there any chances of it

Re: [Interest] Handle frames and web forms with QWebEngine

2015-11-27 Thread Koehne Kai
> -Original Message- > From: NoRulez [mailto:noru...@me.com] > Sent: Friday, November 27, 2015 9:35 AM > To: Koehne Kai > Cc: Qt Project MailingList > Subject: Re: [Interest] Handle frames and web forms with QWebEngine > > This is

Re: [Interest] Handle frames and web forms with QWebEngine

2015-11-27 Thread NoRulez
This is not my tree, it's a simple webpage/webform. But it seems that the new "webengine" can't handle simple tasks like this. I don't think that the following statement is too complex: document.getElementsByTagName('input') Best regards > Am 25.11.2015 um 13:08 schrieb Koehne Kai

[Interest] Unable to make deb file of Qt 5.5 app in Ubuntu 14.04

2015-11-27 Thread Manoj Patidar
Hello, I just want to let you know that I am able to make deb file of Qt 5.2.1 app in Ubuntu 14.04 but unable to make deb file of Qt 5.5 app in Ubuntu 14.04 and got below errors. |//usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5: undefined reference to `QPdfEnginePrivate::paperRect()