[Solved] ‘webivew’ does not name a type
i am creating a project and a strange error occured
‘webivew’ does not name a type
in this source code:
tab.h
- #ifndef TAB_H
- #define TAB_H
- #include <QWidget>
- #include "mainwindow.h"
- #include "webview.h"
- #include <QHBoxLayout>
- class MainWindow;
- {
- Q_OBJECT
- public:
- tab(MainWindow *parent = 0);
- signals:
- public slots:
- private:
- webview * view;
- };
- #endif // TAB_H
tab.cpp:
- #include "tab.h"
- tab::tab(MainWindow *parent) :
- {
- view = new webview(this);
- layout->addWidget(view);
- }
- {
- view->loadurl(url);
- }
webview is a QWebView sub class
really strange error but i am sure any body nows the solution
6 replies
- #ifndef WEBVIEW_H
- #define WEBVIEW_H
- #include <QWebView>
- #include <QWebFrame>
- #include <QMenu>
- #include "tab.h"
- class tab;
- {
- Q_OBJECT
- private slots:
- public:
- webview(tab *parent = 0);
- signals:
- void tabcloserequested();
- public slots:
- protected:
- };
- #endif // WEBVIEW_H
[Edit: Added @ tags around code; mlong]
You must log in to post a reply. Not a member yet? Register here!




