[Qt-creator] qwebview runtime error in qt-creator plugin

duan wenhui duanwenhui at gmail.com
Wed Aug 11 04:55:47 CEST 2010


Hi all,

I am coding for a qt-creator plug-in.
I try to add a new mode to qt-creator, and show a webview on this new mode.

code looks likes this:
    Core::BaseMode *baseMode = new Core::BaseMode;
    baseMode->setUniqueModeName("HelloWorld.HelloWorldMode");
    baseMode->setName(tr("Intel Appup DashBoard!"));
    baseMode->setIcon(QIcon());
    baseMode->setPriority(0);

    QWebView* webview = new QWebView(NULL);
    webview->load(QUrl("www.yahoo.com"));
    baseMode->setWidget(webview);

    baseMode->setContext(context);
    addAutoReleasedObject(baseMode);

    Core::ModeManager *modeManager = core->modeManager();
    modeManager->addAction(command, 0);


build is ok. but, I run into a runtime error.

&"warning: GDB: Failed to set controlling terminal: Invalid argument\n"
/home/dwh/qt-creator-qt-creator/bin/qtcreator.bin: symbol lookup
error: /home/dwh/qt-creator-qt-creator/lib/qtcreator/plugins/Nokia/libDashBoard.so:
undefined symbol: _ZN8QWebViewC1EP7QWidget


following is my .pro

TEMPLATE = lib
TARGET = DashBoard
include(../../qtcreatorplugin.pri)
include(../../plugins/coreplugin/coreplugin.pri)
HEADERS += dashboardplugin.h
SOURCES += dashboardplugin.cpp
OTHER_FILES += dashboard.pluginspec

thanks for any suggestions.


dwh



More information about the Qt-creator-old mailing list