Re: [Interest] QTcpSocket on error Signal not emitted

2013-05-07 Thread Abhishek
Sorry forgot to mention because of this some times it gives me a warning "QAbstractSocket::connectToHost() called when already looking up or connecting/connected " and my ping stop working ! On Fri, May 3, 2013 at 5:22 PM, Thiago Macieira wrote: > On sexta-feira, 3 de maio de 2013 10.25.57, Abhi

[Interest] error connecting signals

2013-05-07 Thread Adrian Stern
Hi I have a little problem connecting a signal to a slot. I’ve the following two classes: DisplayManager which extends QObjects and of course has the Q_OBJECT macro in it and VideoPlayer which extends PlayerBase, IControllable and IPlaceable. PlayerBase extends QObject and has the macro in it.

Re: [Interest] error connecting signals

2013-05-07 Thread Adrian Stern
I moved the slot to PlayerBase and it compiles and runs now. I don’t really understand why. Hi I have a little problem connecting a signal to a slot. I’ve the following two classes: DisplayManager which extends QObjects and of course has the Q_OBJECT macro in it and VideoPlayer which extends

Re: [Interest] error connecting signals

2013-05-07 Thread Giuseppe D'Angelo
On 7 May 2013 11:59, Adrian Stern wrote: > VideoPlayer which extends PlayerBase, IControllable and IPlaceable. > PlayerBase extends QObject and has the macro in it. > > > > When I try to connect the signal like this: > > connect(&vp1, &VideoPlayer::next, this, &DisplayManager::nextVideo); Is the

Re: [Interest] error connecting signals

2013-05-07 Thread Giuseppe D'Angelo
Hi, please keep the discussion on the list. On 7 May 2013 14:08, Adrian Stern wrote: > It was in the VideoPlayer whil it wasn't working. Now that it is in > PlayerBase it is working. > Why? Because, as you said, VideoPlayer was lacking the Q_OBJECT macro. Rule of thumb: put Q_OBJECT in each an

[Interest] Q_WS_WIN and Q_WS_MAC still appear

2013-05-07 Thread Gil Moses
Hi, I understood that the above defines have been replaced with Q_OS_xxx defines. However the SDK is full of the old ones (which are not defined anywhere), for example in \qtbase\src\widgets\util\qcolormap.h line 83. Were these overlooked or were left on purpose? Thanks, Gil. ___

Re: [Interest] error connecting signals

2013-05-07 Thread Adrian Stern
Hey I don't understand exactly. But when i put the Q_Object macro in VideoPlayer, I ghet the errors: ...Debug/moc_videoplayer.cpp:70: Fehler:'QObject' is an ambiguous base of 'VideoPlayer' Shouldn't VideoPlayer inherit this macro from PlayerBase since it is a derived class? class VideoPlayer

Re: [Interest] Q_WS_WIN and Q_WS_MAC still appear

2013-05-07 Thread Joerg Bornemann
On 07/05/2013 14:49, Gil Moses wrote: > Hi, I understood that the above defines have been replaced with Q_OS_xxx > defines. However the SDK is full of the old ones (which are not defined > anywhere), for example in \qtbase\src\widgets\util\qcolormap.h line 83. > > Were these overlooked or were lef

Re: [Interest] QSqlDatabase

2013-05-07 Thread Duane
On 5/6/2013 5:01 PM, Karl Ruetz wrote: > Did you check QSqlDatabase::lastError()? Might give you a clue. I'd also > check any logs generated by the DBMS to see if a table has become > corrupted or some such thing. > > Karl > > On 2013-05-06 13:00, Duane wrote: > >> Why would bool QSqlDatabase::tran

Re: [Interest] QTcpSocket on error Signal not emitted

2013-05-07 Thread Thiago Macieira
On terça-feira, 7 de maio de 2013 10.09.00, Abhishek wrote: > Sorry forgot to mention because of this some times it gives me a warning > "QAbstractSocket::connectToHost() called when already looking up or > connecting/connected " and my ping stop working ! Sounds self-explanatory to me. It's stil

Re: [Interest] QSqlDatabase

2013-05-07 Thread Thiago Macieira
On terça-feira, 7 de maio de 2013 09.10.36, Duane wrote: > I haven't checked LastError but I did check the MySql log and there were > no errors. I will add some debugging that dumps the last error. > I don't think it's a corrupted table or anything because I would get > errors for that and also, j

Re: [Interest] error connecting signals

2013-05-07 Thread Thiago Macieira
On terça-feira, 7 de maio de 2013 12.52.39, Adrian Stern wrote: > I don't understand exactly. But when i put the Q_Object macro in > VideoPlayer, I ghet the errors: ...Debug/moc_videoplayer.cpp:70: > Fehler:'QObject' is an ambiguous base of 'VideoPlayer' > > Shouldn't VideoPlayer inherit this macro

Re: [Interest] QSqlDatabase

2013-05-07 Thread Duane
On 5/7/2013 11:30 AM, Thiago Macieira wrote: > On terça-feira, 7 de maio de 2013 09.10.36, Duane wrote: >> I haven't checked LastError but I did check the MySql log and there were >> no errors. I will add some debugging that dumps the last error. >> I don't think it's a corrupted table or anything

Re: [Interest] QSqlDatabase

2013-05-07 Thread Andre Somers
Op 7-5-2013 18:06, Duane schreef: > > I don't think this is a Qt error, nor an error in our apps as nothing > has chanced in them. I'm assuming it something else affecting the > server. We aren't the only application on this database. I need some > way to find what is causing it. I am adding so

[Interest] QTextDocument: swapping QTextBlocks

2013-05-07 Thread Wilhelm
Hi, is there a built-in / simple way to swap to QTextBlocks including format/user-data? Thanks for any hint! -- Wilhelm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest