Skip to content

Open CASCADE Technology sample - 3D Viewer within Qt Widgets window

License

Notifications You must be signed in to change notification settings

NeziheSozen/Multitouch-using-on-OCCT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCCT 3D Viewer setup within Qt (with Multitouch support)

This sample demonstrates how to use Open CASCADE Technology (OCCT) 3D Viewer within a window created using Qt5 on Windows and Linux platforms.

To support multitouch, combined with Qt's official "imagestures" project. https://doc.qt.io/qt-6/qtwidgets-gestures-imagegestures-example.html

sample screenshot

OCCT QOpenGLWidget sample

Project within occt-qopenglwidget subfolder shows initialization of OCCT 3D viewer from OpenGL context created by QOpenGLWidget within Qt5 Widgets application.

Project could be built in two ways:

  • Using CMake. See CMakeLists.txt in the folder defining building rules. Use cmake-gui or command-line interface for configuring project dependencies (Qt, OCCT).
  • Using qmake. See occt-qopenglwidget-sample.pro in the folder defining building rules. Create custom.pri from custom.pri.template with filled in paths to OCCT.

Qt Creator could be used to open qmake project directly. Make sure to copy necessary dependencies (OCCT, FreeType, FreeImage, etc. - depending on OCCT building configuration) into sample folder or configuring environment (PATH, LD_LIBRARY_PATH).

Building has been checked within OCCT 7.6.0.

sample screenshot

About

Open CASCADE Technology sample - 3D Viewer within Qt Widgets window

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 71.5%
  • CMake 23.6%
  • QMake 4.9%