QtDataVisualization not available - qt

I have QT 5.9.1 which has the package QtDataVisualization. But when I use it in Qt Creator I get the following error:
error: QtDataVisualization: No such file or directory.
I have added "QT += datavisualization" in the .pro file.
I am using Ubuntu 16.04 LTS.
Is it because I am using linux? Does QtDataVisualization work only in Windows?

Related

All Qt classes are highlighted with messages "Use of undeclared identifier" (Qt Creator from Xubuntu 20.04 repo)

I installed Qt Creator from XUbuntu 20.04 repository using these commands:
sudo apt install qt5-default qtcreator qtbase5-examples qtdeclarative5-examples
And I got Qt Creator where all Qt classes are highlighted as errors with message "Use of undeclared identifier". But projects are compiled correctly. АUtocompletion of Qt Classes is also not working.
I don't want to install version from Qt site, because repo versions run faster.
Screenshot:
I've got it fixed by going to Help > About Plugins > C++ > uncheck ClangCodeModel. Restart QtCreator.

Error: The deployment target requir Qt libs, but init qmake is failed. (CQtDeployer)

i am try to use CQtDeployer.
I am using ubuntu 18.04 and QT 5.9.5.
I want to run this on terminal:
cqtdeployer -bin MY_APP_NAME_IN_RELEASE_FOLDER -qmake /usr/lib/qt5/bin/qmake
Note:
/usr/lib/qt5/bin/qmake -> FROM QT CREATOR -> options -> qt versions -> autodetected qt 5.9.5 -> qmake locations
Result:
Info: Deploy ...
Info: flag targetDir not used. use default target dir :/root/Masaüstü/RELEASE/DistributionKit
Error: The deployment target requir Qt libs, but init qmake is failed.
Error: deploy is failed!
Note2:
root#ubuntu-pc:~/DEPLOY_TEST_1# qmake --version
QMake version 3.1
Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu
What's the problem?
And the solution:
Blockquote
Solution 1
As a workaround, uninstall the snap version of cqtdeployer and install cqtdeployer from the installer.
Solution 2
Install Qt from an official source in user space.
If you are unable to use the GUI, use the console utility to install Qt
Blockquote
Solution from : https://github.com/QuasarApp/CQtDeployer/issues/373#issuecomment-637762214

Build QtWebEngine 5.9.1 with proprietary codecs

We need to support to mp4 file in QtwebengineView. So we are trying to build qtwebengine of Qt 5.9.1 on msvc2015 x64, with proprietary codecs, by using following command at cmd with working directory is qtwebengine in source.
"D:\qt-everywhere-opensource-src-5.9.1\qtbase\bin\qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs"
we are facing below error.
WinRT is not supported.
QtWebEngine will not be built
We tried to follow following link:
How to compile Qt webengine (5.11) on Windows with proprietary codecs
But that didn't work either.
How can we build qtwebengine of qt 5.9.1 with proprietary codecs?
I just successfully build QtWebEngine 5.9.6
My build environment:
Windows7 x64
Visual Studio 2015 x64
jom 1.1.2
You can refer to my build process.
Before we start building, let's install the tools:
Python 2.7.13 from https://www.python.org/downloads/windows/
Perl (Strawberry vesion) from http://strawberryperl.com/
Bison and flex from https://sourceforge.net/projects/winflexbison/ (Rename win-bison.exe to bison.exe and win-flex.exe to flex.exe)
Gperf from http://gnuwin32.sourceforge.net/packages/gperf.htm
Download the source code for qt
git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.9.6
perl init-repository --module-subset=qtwebengine,qtwebview
Let's start the formal build
cd qtwebengine
qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs
jom.exe
Then there's the long build process...
The final file will be generated in the qt5/qtwebengine/bin directory after the build is completed

Qt multimedia: cannot find -lpulse

I modified .pro:
QT += core gui multimedia multimediawidgets
And I include <QMediaPlayer>, <QVideoWidgets> in main.cpp
Then I tried to build. It gives me following errors:
cannot find -lpulse-mainloop-glib
cannot find -lpulse
collect2:error:ld returned 1 exit status
Can anyone help me? My system is Ubuntu 16.04 LTS.
Try sudo apt-get install libpulse-dev
From http://www.qtcentre.org/threads/50938-QT-error-usr-bin-ld-cannot-find-lpulse-mainloop-glib:
From: norobro
Default Re: QT error /usr/bin/ld: cannot find -lpulse-mainloop-glib
On my Debian box that lib is in the libpulse-dev package. Do you have it installed?

Qwt installation for Qt Creator on windows 7

I installed Qt Creator. I would like to use Qwt. I downloaded and unzipped to "C:\qwt-6.1.0" folder. I performed the following instructions:
qmake qwt.pro
mingw32-make
mingw32-make install
There is no error. Everything is fine. But I don't know how I can integrate with Qt creator. I would like to use Qt via form editor. How can I install plugin?
Thanks
Platform
Windows 7
Versions
Qt Creator 2.7.2
Qt 5.1.0(32 bit)
Qwt 6.1.0
http://www.qtcentre.org/threads/53787-HowTo-Installation-of-Qt-5-0-1-and-Qwt-6-1-0-rc3-(Win7-64bit)
check this.Its works also on win8 64 bit.

Resources