QT: qmake not recognising 3dcore, 3drender - c++

I am using qmake to compile my QT project. In my .pro file I have a line:
QT += 3dcore 3drender 3dinput 3dextras
When executing qmake myprofile.pro I get the error:
Project ERROR: Unknown module(s) in QT: 3dcore 3drender 3dinput 3dextras
I am using Ubuntu17 and have QT5 installed. How can I get it to work with qmake? I am including libraries like <Qt3DCore> in my code so I require these modules as suggested here.

3dcore introduced in Qt 5.7, ubuntu 17 had only 5.6 by default. If you have such problems, you need to update library.

Related

How to use OpenCV 3.2 in Qt-creator 4.2.1 in Windows plattform

I want to use the OpenCV library 3.2 with Qt-creator 4.2.1 in Windows plattform.
In the .pro file I used the following code:
INCLUDEPATH += C:/OpenCV/opencv/build/include
LIBS += LC:/OpenCV/opencv/build/x64/vc14/lib \
-opencv_world320d \
-opencv_world320 \
And in the main.cpp file I use:
#include "opencv2/core/core.hpp"
When I run my program I have the following error:
C1083: Cannot open include file: 'opencv2/core/core.hpp': No such file or directory
Any idea how to link OpenCV to QT creator on Windows 10 in a correct way?
Thank you in advance!
Note:
I already saw these tutorials/answers but nothing helps until now:
Qt creator can not include opencv header files
How to link opencv in QtCreator and use Qt library
Using OpenCV on Qt Creator 3.2 (Qt 5.3)
Using OpenCV on Qt Creator 3.2 (Qt 5.3) - Blog
And many others but they use old versions of OpenCV and/or Qt and/or Operating system

QT: QTWebview is not working

My operating System: Windows 7 64bit
QT Version: QT Creator 4.2.0 based on QT 5.7.1(MSVC 2015, 32 bit)
The QWebview widget is not displayed in my mainwindow.ui file.
I already tried following steps:
-QT += webkitwidgets or QT+= webenginewidgets
-include <QTWebView> or include <QTWebEngineView>
After using the above commands i got this project error:
Project ERROR: Unknown module(s) in QT: webenginewidgets
I also tried to reinstall the QT Creator, but i still got the same problem, i cant use any web-related widgets(Webkit/WebEngineView, ...).
Thanks for your help.
Best regards.

Unknown module QT: webkit

I am trying to make a simple webview in Qt 5.6
in my .pro file I have
QT += webkitwidgets
I have this Error:
:-1: error: Unknown module(s) in QT: webkitwidgets
Starting from Qt 5.6 Qt WebKit was removed:
https://wiki.qt.io/New_Features_in_Qt_5.6
With Qt 5.6 the following modules are no longer part of the release packages, but users can still build them from source: Qt WebKit
So if you still want to use WebKit you need 5.5 or earlier or you need to build your own version from sources.

qwt build - qmake build (Qt 5.3)

I want to compile the qwt library using qt 5.3. Previously I had older versions of Qt. So, when I call the Qt 5.3.0 32-bit for Desktop (MSVC 2012 OpenGL) shell and move to the directory, which contains qwt (C:\qwt-6.1.0), then perform qmake qwt.pro I get this error:
Cannot read c:/Qt/Qt5.0.2/mkspecs/win32-msvc2010/qmake.conf: The system cannot find
the path specified. Could not read qmake configuration
file c:/Qt/Qt5.0.2/mkspecs/win32-msvc2010/qmake.conf.
Error processing project file: C:\qwt-6.1.0\qwt.pro
Calling:
qmake -set QMAKESPEC "C:\Qt_5.3\5.3\msvc2012_opengl\mkspecs\win32-msvc2012\"
Does not help.
PS. Solution is found! I've tried not to do like is in qwt tutorial, simple open *.pro file by Qt Creator. After this just "build" and everything was done. Without console

Unknown module(s) in QT: webkit

Added QT += network webkit and I tried just QT += webkit to the .pro solution file and ran qmake from inside the QtCreator and got this error:
error: Unknown module(s) in QT: webkit
I really need to make use of these includes:
#include <QWebView>
#include <QUrl>
Any ideas?
If you say you installed the beta version I suppose you installed Qt version 5. In that case webkit module does not exist anymore. You need webkitwidgets:
QT += webkitwidgets
That will add the module needed to use QWebView. QUrl is in the core module, so you don't need the network module.