qt5

bitbake: how to resume compilation

狂风中的少年 提交于 2019-12-13 03:43:55
问题 During a bitbake <image> execution, 3 errors are generated and the building process stopped. Here the last lines of the output: | ERROR: Function failed: do_compile (log file is located at /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/temp/log.do_compile.26600) ERROR: Task (/local/STM32MP15-Ecosystem-v1.0.0

Auto Grant access to Mic and Camera with Qt WebEngine

*爱你&永不变心* 提交于 2019-12-13 03:38:01
问题 I am building a home security system with RPi and WebRTC. I simply need a way to trigger a browser to open at a given URL and to auto-grant access to the Microphone and Camera. I had hoped to use the WebEngine library with PyQt but WebEngine is not supported in PyQt for RPi. So I am trying Qt itself now. Unfortunately I am not familiar with C++, so i am struggling. The example here has 90% of what I need. The code is replicated below. I just need to tweak it to grant access to the mic and

Qt 5.10 QGraphicsView cannot scale QGraphicsScene to fullscreen

不羁的心 提交于 2019-12-13 03:36:45
问题 I am experimenting with Qt 5.10 QMultimedia on Ubuntu 16.04 to play Gstreamer recorded videos. The meat of the application is shown below. I cannot seem to get the video to scale to the full Qt screen after I call showMaximized(). The small video shown in the middle of the screen is shown below ( I want it to scale to the entire window ): The Code: #include "mainwindow.h" #include <QVideoWidget> #include <QGraphicsView> #include <QtMultimedia> #include <QGraphicsVideoItem> #include <unistd.h>

QML text rendering issue with custom OpenGL item active

梦想的初衷 提交于 2019-12-13 00:23:39
问题 I've been working with the QmlOgre Qt example to make it work with Qt5 final. The original example itself looks fine now and behaves as intended. My code is here: https://github.com/advancingu/QmlOgre However I found that there is an issue when a QML text item is modified either through changed signals emitted from C++ or from a simple timer in the sample QML scene. For example, I added a 10ms QML timer that simply increments a counter and assigns it to a text item. The corresponding code is

How can I convert pixel data in QImage to another format?

跟風遠走 提交于 2019-12-13 00:19:07
问题 I receive an instance of QImage with arbitrary QImage::Format . How can I create another instance of QImage with a particular QImage::Format of my choosing so that the actual image data is converted from the arbitrary format to my format? Example: QImage convertFormat(const QImage &inputImage, QImage::format outputFormat) { // What comes here? } //Usage QImage converted = convertFormat(mySourceImage, QImage::Format_Grayscale8); I am looking for a way to do this with existing code in Qt if

How to use QComboBox to choose how to save the format of a QImage

眉间皱痕 提交于 2019-12-13 00:07:30
问题 Sorry if this question is trivial but I have the following problem: I have N.1 QGraphicsView N.1 QComboBox I am trying to save the images uploaded on the QGraphicsView into a folder on my Desktop choosing the format of the image through a QComboBox . The loop I wrote it works for a .png file but I am stuck with other different formats as I am not sure how to correctly handle the QComboBox choice. See below the snipped of code I am using: mainwindow.h public: explicit MainWindow(QWidget

Application based on qxmpp can't connect to server on Android, but working well on windows

青春壹個敷衍的年華 提交于 2019-12-12 23:41:48
问题 I'm using qxmpp library in my project. I've tried to write simple app to find out if it connects to server. It connects on Windows well. Then I've tried to test it on Android, but it doesn't connect and I don't know why because it shows no error. The app running correctly on Android, but it seems nothing is going on about XMPP protocol. No connection and logging. All I got in debug() just this one line: D/libc-netbsd( 465): getaddrinfo: gmail.com get result from proxy >> This is my first try:

How to keep an item view scrolled to the bottom when items are added?

心不动则不痛 提交于 2019-12-12 21:16:29
问题 When appending items at the end of a model shown by a QAbstractItemView , I wish to keep the view at the bottom of the data, showing the most recent added items. The default behavior is to retain the most recently displayed item's position, but not to scroll if we were at the bottom. What would be the magic needed to keep the view at the bottom if the user has previously scrolled it all the way to the bottom? 回答1: QListView view; bool viewAtBottom = false; Before an item is added, check if

How to add a custom role to QFileSystemModel

眉间皱痕 提交于 2019-12-12 19:18:18
问题 I would like to add a custom role to a QFileSystemModel (probably to a derived model). I want to use this role to save the check state of a CheckBox which is displayed next to the filename in a custom delegate. How can this be done? 回答1: I have used using the example Qt Quick Controls - File System Browser Example removing the part of the selection. The steps were the following: Add a new role in roleNames : QHash<int,QByteArray> roleNames() const Q_DECL_OVERRIDE { QHash<int, QByteArray>

ICU support in a 32-bit build of Qt5 with the VS2012 compiler causes Qt5 build failure; Webkit is also therefore unbuildable

北慕城南 提交于 2019-12-12 16:42:22
问题 I have run into another in a long stream of obstacles attempting to build Qt5 with the VS2012 compiler. When ICU is enabled ("-icu" on the configure command line, along with a proper 32-bit build of ICU in VS2012 and proper inclusion of all ICU paths (header, .lib, and .dll)), Line 688 of qtbase\src\corelib\codecs\qtextcodec.cpp returns a NULL codec (ICU fails to return a codec) when asked for a codec whose name is "US-ASCII". Specifically: QTextCodec* QTextCodec::codecForLocale() {