Re: [Interest] MultiCast problem. QAbstractSocket::ShareAddress no effect?

2013-09-09 Thread Thiago Macieira
On segunda-feira, 9 de setembro de 2013 22:33:32, Guido Seifert wrote: > Also when I start a second multicastreceiver, I get: > QNativeSocketEngine::joinMulticastGroup() was not called in > QAbstractSocket::BoundState There were some changes that delayed binding until later, so we'd know what you

Re: [Interest] MultiCast problem. QAbstractSocket::ShareAddress no effect?

2013-09-09 Thread Mandeep Sandhu
On Tue, Sep 10, 2013 at 2:03 AM, Guido Seifert wrote: > > Hi, I worked a little bit more on my problem. Is it possible, that > QAbstractSocket::ShareAddress has not effect on Qt 5.1.1/64bit/linux? > > The BindFlags you're passing seem to be aimed at making listening to existing host:port combos (

Re: [Interest] MultiCast problem. QAbstractSocket::ShareAddress no effect?

2013-09-09 Thread Guido Seifert
Hi, I worked a little bit more on my problem. Is it possible, that QAbstractSocket::ShareAddress has not effect on Qt 5.1.1/64bit/linux? I cannot get UPnP messages from my xbmc, when it runs on the same machine. With Qt4 this was not a problem. What I did now: I took the multicastreceiver from

Re: [Interest] QNetwork problem in threaded application (repost from development).

2013-09-09 Thread Thiago Macieira
On segunda-feira, 9 de setembro de 2013 18:10:25, Benjamin Zeller wrote: > > 2) there's a lingering bug in the dispatcher that causes it to send events > > to objects that have recently been moved away. For example, it's possible > > that the event dispatcher got woken up by two socket activities.

[Interest] MultiCast problem.

2013-09-09 Thread Guido Seifert
Hi, I currently port a Qt4 program to Qt5. I have the following trouble with a multicast socket. On Qt4: mReceiver = new QUdpSocket(this); mReceiver->bind(1900, QUdpSocket::ReuseAddressHint|QUdpSocket::ShareAddress); mReceiver->joinMulticastGroup("Address"); Works great. Now under Qt5: First I

Re: [Interest] QNetwork problem in threaded application (repost from development).

2013-09-09 Thread Thiago Macieira
On segunda-feira, 9 de setembro de 2013 21:46:56, Benjamin Zeller wrote: > Is it maybe possible that due to high load the ThreadChange Event gets > lost (or is delivered too late)? The socket descriptor is then never > disabled and reenabled , which means the thread affinity would be wrong. The T

Re: [Interest] QNetwork problem in threaded application (repost from development).

2013-09-09 Thread Benjamin Zeller
On 09.09.2013 19:30, Thiago Macieira wrote: > On segunda-feira, 9 de setembro de 2013 18:10:25, Benjamin Zeller wrote: >>> 2) there's a lingering bug in the dispatcher that causes it to send events >>> to objects that have recently been moved away. For example, it's possible >>> that the event disp

Re: [Interest] Loading libraries from root folder

2013-09-09 Thread Thiago Macieira
On segunda-feira, 9 de setembro de 2013 11:05:39, Joseph W Joshua wrote: > Hello all, > > I wish to deploy my application under both Linux and windows. In > windows, the OS automatically looks for libraries in the application > startup path. However in Linux, the OS always complains about missing

Re: [Interest] QNetwork problem in threaded application (repost from development).

2013-09-09 Thread Thiago Macieira
On segunda-feira, 9 de setembro de 2013 15:18:26, Benjamin Zeller wrote: > sendEvent is used, but the receiver is in another thread, shouldn't it > use postEvent or better shouldn't the threads eventloop do this stuff? > As a note: the threads eventloop is not running when the crash occurs, > maybe

Re: [Interest] QML Presentation System, detailed docs & roadmap?

2013-09-09 Thread Alan Alpert
On Mon, Sep 9, 2013 at 12:23 AM, Sletta Gunnar wrote: > > On Sep 7, 2013, at 12:23 AM, Alan Alpert <4163654...@gmail.com> wrote: >> *actually I still use its precedessor, >> https://gitorious.org/qt-qml-demo-playground/qt-qml-demo-playground/source/708de53727032441efd63f4ac24d13079fe82c52:qml-pres

Re: [Interest] QNetwork problem in threaded application (repost from development).

2013-09-09 Thread Benjamin Zeller
On 09.09.2013 17:37, Thiago Macieira wrote: > On segunda-feira, 9 de setembro de 2013 15:18:26, Benjamin Zeller wrote: >> sendEvent is used, but the receiver is in another thread, shouldn't it >> use postEvent or better shouldn't the threads eventloop do this stuff? >> As a note: the threads eventl

[Interest] QNetwork problem in threaded application (repost from development).

2013-09-09 Thread Benjamin Zeller
Hello, i'm currently stress-testing a application at work and came across this problem. The application accepts connections and pushes the created sockets to a worker thread (moveToThread), the worker thread then handles the rest. But sometimes when the socket was already closed in the thread i ge

Re: [Interest] Loading libraries from root folder

2013-09-09 Thread Mitch Curtis
On 09/09/2013 08:07 PM, Joseph W Joshua wrote: > On 09/09/2013 07:05 AM, Till Oliver Knoll wrote: >> >> "The disadvantage of the second approach [rpath] is that the user may >> not have privileges to install into the predetermined path." >> >> > Till, > > It is this particular quote which put me of

Re: [Interest] Loading libraries from root folder

2013-09-09 Thread Joseph W Joshua
On 09/09/2013 07:05 AM, Till Oliver Knoll wrote: "The disadvantage of the second approach [rpath] is that the user may not have privileges to install into the predetermined path." Till, It is this particular quote which put me off the second approach in the first place. I have not tried i

Re: [Interest] Loading libraries from root folder

2013-09-09 Thread Till Oliver Knoll
Am 09.09.2013 um 17:42 schrieb Joseph W Joshua : > ... >> >> Please see: >> http://qt-project.org/doc/qt-5.0/qtdoc/deployment-x11.html#creating-the-application-package > Thanks, > > LD_LIBRARY_PATH looks like the best option. Using the rpath linker option with a /relative/ path like "./lib"

Re: [Interest] Loading libraries from root folder

2013-09-09 Thread Joseph W Joshua
On 09/09/2013 04:36 AM, Mitch Curtis wrote: > On 09/09/2013 05:05 PM, Joseph W Joshua wrote: >> Hello all, >> >> I wish to deploy my application under both Linux and windows. In >> windows, the OS automatically looks for libraries in the application >> startup path. However in Linux, the OS always

Re: [Interest] Loading libraries from root folder

2013-09-09 Thread Mitch Curtis
On 09/09/2013 05:05 PM, Joseph W Joshua wrote: > Hello all, > > I wish to deploy my application under both Linux and windows. In > windows, the OS automatically looks for libraries in the application > startup path. However in Linux, the OS always complains about missing > libs, even though they ar

Re: [Interest] Loading libraries from root folder

2013-09-09 Thread André Hartmann
Hi Josh, try the following in a terminal: LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./application changes the library search path for the current instance of application BR, Andre Am 09.09.2013 17:05, schrieb Joseph W Joshua: > Hello all, > > I wish to deploy my application under both Linux and windo

[Interest] Loading libraries from root folder

2013-09-09 Thread Joseph W Joshua
Hello all, I wish to deploy my application under both Linux and windows. In windows, the OS automatically looks for libraries in the application startup path. However in Linux, the OS always complains about missing libs, even though they are located in the same folder as the app. Is there a wa

[Interest] synchronize multiple graphicsviews

2013-09-09 Thread Mojmír Svoboda
Good morning, I have something like profiler and each thread is contained in its own graphicsview. On the x axis is time of course and i want the setpos in one thread to be propagated in the others. So i hooked the horizontalScrollBar::valueChanged and i am trying to dispatch the signal to other

Re: [Interest] QML Presentation System, detailed docs & roadmap?

2013-09-09 Thread Sletta Gunnar
On Sep 7, 2013, at 12:23 AM, Alan Alpert <4163654...@gmail.com> wrote: > *actually I still use its precedessor, > https://gitorious.org/qt-qml-demo-playground/qt-qml-demo-playground/source/708de53727032441efd63f4ac24d13079fe82c52:qml-presentation > , because while it's less user-friendly and less

Re: [Interest] QML Presentation System, detailed docs & roadmap?

2013-09-09 Thread Sletta Gunnar
Hi Charley, Thanks you for your interest in this project :) The original idea I had for the presentation system was to make it convenient to mix a slide deck with live QML. It makes the assumption that the user understands QML. I agree with you that there are tons of improvements that could be