Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 18
Registered: ‎01-31-2013
My Device: Dev Alpha
My Carrier: MobileTeleSystem

QWebPage QWebView

Hi all.
I have some code from my old Qt application.
Some classes in my application use such Qt classes like QWebPage QWebFrame.
Momentics says that 

 

#include <QWebView> - unresolved includion.

 

here is my .pro file

QT += gui declarative network core


INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtGui
INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtDeclarative
INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtNetwork
INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtCore

DEPENDPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtGui
DEPENDPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtDeclarative
DEPENDPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtNetwork
DEPENDPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtCore


LIBS += -lwebkit

 Any suggestions?
Sorry for bad English.

Highlighted
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: QWebPage QWebView

[ Edited ]

It seems that webkit module is required and although lib files are present, I couldn't find the headers in NDK.

 

You might be able to compile it by deploying your own Qt build to the device (Wiki on qt-project.org has a page on this)  but that'll probably not help much. QWebFrame inherits from QWidget and it's not possible to mix Qt widgets with Cascades widgets. I'd consider using native Cascades classes:

https://developer.blackberry.com/cascades/reference/bb__cascades__webview.html

 


Andrey Fidrya, @zmeyc on twitter
New Developer
Posts: 17
Registered: ‎11-08-2012
My Device: Z10 Limited Edition
My Carrier: H3G - Italy

Re: QWebPage QWebView

The class QWebView does not seem to be available in the Cascades.
But I see that the documentation mentions QWebView.

https://developer.blackberry.com/native/documentation/cascades/ui/webview/loadingwebcontent.html

This leaves me doubtful, I have to find other ways to achieve my purpose or is there a way to use them?