Skip to content

Commit d75313c

Browse files
committed
QWebBrowser
0 parents  commit d75313c

32 files changed

+1626
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.vscode/
2+
cmake-build-debug/
3+
cmake-build-release/
4+
.idea/
5+
*.db
6+
CMakeLists.txt.user*

CMakeLists.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
cmake_minimum_required(VERSION 3.17)
2+
project(QWebBrowser)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_AUTOMOC ON)
6+
set(CMAKE_AUTORCC ON)
7+
set(CMAKE_AUTOUIC ON)
8+
9+
find_package(Qt6 COMPONENTS Widgets)
10+
if( NOT Qt6_FOUND )
11+
set(QT_VERSION 5)
12+
else()
13+
set(QT_VERSION 6)
14+
endif()
15+
16+
set(REQUIRED_LIBS Core Gui Widgets Sql WebEngineWidgets)
17+
set(REQUIRED_LIBS_QUALIFIED Qt${QT_VERSION}::Core Qt${QT_VERSION}::Gui Qt${QT_VERSION}::Widgets Qt${QT_VERSION}::Sql Qt${QT_VERSION}::WebEngineWidgets)
18+
19+
add_executable(${PROJECT_NAME} main.cpp include/dataitem.hpp src/dataitemmanager.cpp include/dataitemmanager.hpp src/historyview.cpp include/historyview.hpp src/webview.cpp include/webview.hpp resources.qrc src/webbrowser.cpp include/webbrowser.hpp)
20+
21+
if (NOT CMAKE_PREFIX_PATH)
22+
message(WARNING "CMAKE_PREFIX_PATH is not defined, you may need to set it "
23+
"(-DCMAKE_PREFIX_PATH=\"path/to/Qt/lib/cmake\" or -DCMAKE_PREFIX_PATH=/usr/include/{host}/qt{version}/ on Ubuntu)")
24+
endif ()
25+
26+
if ( CMAKE_COMPILER_IS_GNUCC )
27+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wunused")
28+
endif()
29+
if ( MSVC )
30+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
31+
endif()
32+
33+
include_directories(${QWebBrowser_SOURCE_DIR}/include)
34+
find_package(Qt${QT_VERSION} COMPONENTS ${REQUIRED_LIBS} REQUIRED)
35+
target_link_libraries(${PROJECT_NAME} ${REQUIRED_LIBS_QUALIFIED})

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# QWebBrowser [![CodeFactor](https://www.codefactor.io/repository/github/ola-jed/qwebbrowser/badge)](https://www.codefactor.io/repository/github/ola-jed/qwebbrowser)
2+
3+
4+
QWebBrowser is a simple web browser written in c++ with qt
5+
## How to build ?
6+
7+
You need to have [qt](https://www.qt.io/download-qt-installer) installed to build the app. (Don't forget to add qmake to the path)
8+
9+
```bash
10+
git clone https://github.com/Ola-jed/QWebBrowser.git
11+
cd QWebBrowser
12+
cmake .
13+
make
14+
./QWebBrowser # You can pass the urls you want to open
15+
```
16+
Just import the project if you use an ide.
17+
18+
## Screenshot
19+
![Screenshot_20210708_092947](https://user-images.githubusercontent.com/66482155/124889598-295b3680-dfcf-11eb-90e5-8919f590bcd9.png)

assets/delete.ico

290 Bytes
Binary file not shown.

assets/download.ico

289 Bytes
Binary file not shown.

assets/favorites.ico

324 Bytes
Binary file not shown.

assets/help.ico

524 Bytes
Binary file not shown.

assets/history.ico

351 Bytes
Binary file not shown.

assets/home.ico

300 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)