Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, April 2008
Bug in QSqlReleationalDelegate


Message 1 in thread

Hello,

QSqlRelationalDelegate class does not have Q_OBJECT macro in it 
declaration (in Qt 4.3.3 and Qt 4.4.0 tp1).

Is this a bug?

--
 [ signature omitted ] 

Message 2 in thread

Vadim Godunko wrote:
> Hello,
>
> QSqlRelationalDelegate class does not have Q_OBJECT macro in it
> declaration (in Qt 4.3.3 and Qt 4.4.0 tp1).
>
> Is this a bug?
>
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
Not really, it doesn't have any signals or slots, therefor it doesn't
need the code pulled in by the Q_OBJECT macro, but can instead rely on
it's derivation ultimately from QObject. If you're deriving from it for
some reason, you can add Q_OBJECT to your own class if you need the
signals/slots support.

-- 
 [ signature omitted ] 

Message 3 in thread

Bill KING wrote:
>>
> Not really, it doesn't have any signals or slots, therefor it doesn't
> need the code pulled in by the Q_OBJECT macro, but can instead rely on
> it's derivation ultimately from QObject. If you're deriving from it for
> some reason, you can add Q_OBJECT to your own class if you need the
> signals/slots support.
> 
The problem for me is object of the QSqlRelationalDelegate class returns 
"wrong" meta information. I can't distinguish this object from the 
object of the QItemDelegate class.

Can you please add Q_OBJECT macro to the QSqlRelationalDelegate class?

--
 [ signature omitted ]