qt5.1

Change input resolution for QCamera

倾然丶 夕夏残阳落幕 提交于 2019-12-10 18:06:51
问题 I have implemented a camera capture using QCamera with QAbstractVideoSurface. I extended the QAbstractVideoSurface to a derived class to marshal the captures into a buffer for future processing. Everything works fine but I am having an issue changing the capture resolution of the input capture. using setNativeResolution() does not seem to work. Below is a brief of the code. #ifndef _CAPTURE_BUFFER_H_ #define _CAPTURE_BUFFER_H_ #include <QMutex> #include <QWidget> #include <QImage> #include

Qt: UI with c++ vs with xml vs with qml

十年热恋 提交于 2019-12-05 20:41:46
问题 I have started learning qt today and have a question. When I create a project, it comes with *.ui file which is XML kind of file but in the book, I am only creating UI with pure c++(classes). I have heard there is another way of creating the UI with qml. So, What are pros and cons of each UI creating way? Thanks in advance EDIT: I am using QT 5.1.0 回答1: Don't forget that you can also embed a QtWebkit view and use HTML directly as the user interface controls. A lengthy answer with the

Qt: UI with c++ vs with xml vs with qml

谁说胖子不能爱 提交于 2019-12-04 04:58:32
I have started learning qt today and have a question. When I create a project, it comes with *.ui file which is XML kind of file but in the book, I am only creating UI with pure c++(classes). I have heard there is another way of creating the UI with qml. So, What are pros and cons of each UI creating way? Thanks in advance EDIT: I am using QT 5.1.0 Don't forget that you can also embed a QtWebkit view and use HTML directly as the user interface controls. A lengthy answer with the specifics of each sub-framework could be provided, but the QT project people have already answered this question

【QT5.1】Windows 下的 安卓开发环境配置

ⅰ亾dé卋堺 提交于 2019-11-29 09:29:05
本文参考 http://qt-project.org/wiki/building_qt-android_on_windows 本人开发环境: win8 64 位,win7 ,xp 应该更没有问题,注意选择 32 位 ,64位的区分 1. 安装 Perl http://strawberryperl.com/ 这步可能不是必须的,目前来说我是装上了的, 2.下载 MinGW-w64 http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/32-bit/threads-win32/dwarf/x32-4.8.1-release-win32-dwarf-rev1.7z/download 解压到指定目录,目录结构大概是这样 【 D:\mingw-builds\mingw32】 ,把【 D:\mingw-builds\mingw32\bin 】加入PATH 3.下载 mingwbuilds MSYS and external binaries (for git) http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/msys+7za+wget+svn+git+mercurial+cvs-rev13

qt5.1.1 mysql ubuntu QMYSQL driver not loaded

岁酱吖の 提交于 2019-11-29 02:30:22
I'm trying to access mysql using Qt5.1.1 but i am getting the error the error below. I also searched a lot on google but unable to fix it.Please suggest me a solution so that i am able to resolve this error. error: QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QSqlError(-1, “ driver not loaded”, “ driver not loaded”) code: #include <QCoreApplication> #include <QDebug> #include <QDir> #include <QtSql> #include <QSqlDriver> #include <qsqldatabase.h> #include <QSqlError> #include <QPluginLoader> int main(int argc, char *argv[]) {