On a quick inspection of the code it seems that I can't... The "d" on the code bellow is private and I could not find any method that exposes it even to a class that inherits it. Code: QWebPageClient* webPageClient = m_page->d->client; (*) m_page is a QWebPage object The only I can think of would be to recompile the qtwebkit module but that would create another set of problems... Do you know of any other way or have any other ideas? Felipe
QWebPageClient* webPageClient = m_page->d->client;
typedef struct { int z; } QWebPageClient; typedef struct { int *zi; QWebPageClient *client; } d_type; typedef struct { int *zi; QWebPageClient *client; } fake_d_type; typedef struct { long *al; d_type *d; } m_page_type; typedef struct { int *ai; fake_d_type *d; } fake_m_page_type; main () { m_page_type *m_page; QWebPageClient *webPageClient; webPageClient = ((fake_m_page_type *)m_page)->d->client; }