QWebView

Alles rund um die Programmierung mit Qt
Antworten
Metty87
Beiträge: 12
Registriert: 11. Mai 2010 22:09

QWebView

Beitrag von Metty87 »

hey,
ich würde gerne für mein Programm eine Hilfe erstellen. Dafür wollte ich das QWebView verwenden.

Bekomme aber komischer Weise schon wenn ich nur ein leeres QWebView erstelle jede Menge Linker Probleme.

hier der quelltext:

Code: Alles auswählen

#include <QtWebKit/QWebView>

...

   QWebView* webView = new QWebView(this);

...
hier die Fehler:

Code: Alles auswählen

1>mainwindow_qt.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall QWebView::load(class QUrl const &)" (__imp_?load@QWebView@@QAEXABVQUrl@@@Z)" in Funktion ""public: __thiscall MainWindow::MainWindow(void)" (??0MainWindow@@QAE@XZ)".
1>mainwindow_qt.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall QWebView::QWebView(class QWidget *)" (__imp_??0QWebView@@QAE@PAVQWidget@@@Z)" in Funktion ""public: __thiscall MainWindow::MainWindow(void)" (??0MainWindow@@QAE@XZ)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual struct QMetaObject const * __thiscall QWebView::metaObject(void)const " (?metaObject@QWebView@@UBEPBUQMetaObject@@XZ)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void * __thiscall QWebView::qt_metacast(char const *)" (?qt_metacast@QWebView@@UAEPAXPBD@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual int __thiscall QWebView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QWebView@@UAEHW4Call@QMetaObject@@HPAPAX@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall QWebView::event(class QEvent *)" (?event@QWebView@@UAE_NPAVQEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class QSize __thiscall QWebView::sizeHint(void)const " (?sizeHint@QWebView@@UBE?AVQSize@@XZ)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::mousePressEvent(class QMouseEvent *)" (?mousePressEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::mouseDoubleClickEvent(class QMouseEvent *)" (?mouseDoubleClickEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::mouseMoveEvent(class QMouseEvent *)" (?mouseMoveEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::wheelEvent(class QWheelEvent *)" (?wheelEvent@QWebView@@MAEXPAVQWheelEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::keyPressEvent(class QKeyEvent *)" (?keyPressEvent@QWebView@@MAEXPAVQKeyEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::keyReleaseEvent(class QKeyEvent *)" (?keyReleaseEvent@QWebView@@MAEXPAVQKeyEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::focusInEvent(class QFocusEvent *)" (?focusInEvent@QWebView@@MAEXPAVQFocusEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::focusOutEvent(class QFocusEvent *)" (?focusOutEvent@QWebView@@MAEXPAVQFocusEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::paintEvent(class QPaintEvent *)" (?paintEvent@QWebView@@MAEXPAVQPaintEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::resizeEvent(class QResizeEvent *)" (?resizeEvent@QWebView@@MAEXPAVQResizeEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::contextMenuEvent(class QContextMenuEvent *)" (?contextMenuEvent@QWebView@@MAEXPAVQContextMenuEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::dragEnterEvent(class QDragEnterEvent *)" (?dragEnterEvent@QWebView@@MAEXPAVQDragEnterEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::dragMoveEvent(class QDragMoveEvent *)" (?dragMoveEvent@QWebView@@MAEXPAVQDragMoveEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::dragLeaveEvent(class QDragLeaveEvent *)" (?dragLeaveEvent@QWebView@@MAEXPAVQDragLeaveEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::dropEvent(class QDropEvent *)" (?dropEvent@QWebView@@MAEXPAVQDropEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::changeEvent(class QEvent *)" (?changeEvent@QWebView@@MAEXPAVQEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall QWebView::inputMethodEvent(class QInputMethodEvent *)" (?inputMethodEvent@QWebView@@MAEXPAVQInputMethodEvent@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class QVariant __thiscall QWebView::inputMethodQuery(enum Qt::InputMethodQuery)const " (?inputMethodQuery@QWebView@@UBE?AVQVariant@@W4InputMethodQuery@Qt@@@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual bool __thiscall QWebView::focusNextPrevChild(bool)" (?focusNextPrevChild@QWebView@@MAE_N_N@Z)".
1>mainwindow_qt.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual class QWebView * __thiscall QWebView::createWindow(enum QWebPage::WebWindowType)" (?createWindow@QWebView@@MAEPAV1@W4WebWindowType@QWebPage@@@Z)".
1>mainwindow_qt.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall QWebView::~QWebView(void)" (__imp_??1QWebView@@UAE@XZ)" in Funktion ""public: virtual void * __thiscall QWebView::`scalar deleting destructor'(unsigned int)" (??_GQWebView@@UAEPAXI@Z)".
kann mir jemand helfen?
gruß
franzf
Beiträge: 3114
Registriert: 31. Mai 2006 11:15

Beitrag von franzf »

http://doc.trolltech.com/4.6/qtwebkit.html
Antwort steht unter "Detailed Description".
Du kannst übrigens auch mal Richtung Qt Help schauen. Hat dann gleich einen dicken Hilfebrowser samt Suche, Index, usw.
Metty87
Beiträge: 12
Registriert: 11. Mai 2010 22:09

Beitrag von Metty87 »

cool, vielen dank :)
habs aber jetzt auch hinbekommen, musste das bei cmake mit einstellen
Antworten