15 questions
1
vote
1
answer
33
views
PyQt WebEngine custom scheme crash
I am currently trying to implement a custom url scheme using an in-app browser made with PyQtWebEngine. The problem I am facing is that the whole app crashes right after loading the custom scheme url. ...
-1
votes
1
answer
105
views
Segmentation fault error when trying to upload data from a QBuffer
I have never coded with C++ nor with Qt, but I wanted to customize Flameshot to upload images to my self-hosted Picsur instance. However, Picsur uses a different method for uploading images via api ...
0
votes
0
answers
45
views
writeCharacters() of QXmlStreamWriter crashed when writting the content of a big file to QBuffer
The following code use writeCharacters with small buffer size to writing the content of big file, but it seems it only works when writing the content to a xml file, but writeCharacters() will crash ...
1
vote
1
answer
271
views
Why do I need to assign QBuffer to a variable in order not to crash QImageReader?
That's such a weird bug, if it's even a bug.
This works:
from PySide6.QtCore import QBuffer, QByteArray, QFile, QIODevice
from PySide6.QtGui import QImageReader
image_path = Path('/home/p10/...
0
votes
1
answer
496
views
error: unknown type name 'QBuffer'; did you mean 'Qt3DRender::QBuffer'?
I have this code:
#include <QBuffer>
// ---
QString m_parentName;
// ---
QString path = QDir::tempPath();
path = path + "/" + "temp-" +...
0
votes
1
answer
2k
views
Repeatedly write and read to/from QBuffer via QTextStream
I am trying to repeatedly write and read to/from a QBuffer object via QTextStream. First I construct both objects:
QBuffer b;
b.open(QIODevice::ReadWrite);
QTextStream s(&b);
// Setup text stream ...
0
votes
0
answers
1k
views
Play video using QMediaplayer from buffer and append buffer while the video playing
I tried to play video from a buffer and append the buffer while playing so the two or more videos play after each other without any delay as they are one video, I tried to use the QMediaPlaylist and ...
0
votes
2
answers
710
views
QByteArray including floats
I am a newbie of C++ and QT and i am actually on a project of writing a sound signal generator. But my problem is,
I am creating the floats to be implemented in qbytearray which i will use to fill ...
0
votes
1
answer
1k
views
QBuffer writes bytes at the start of QByteArray rather than the end
I have the following code:
QByteArray ba; // Declare Byte array
ba.clear(); // Clear it
ba.append(80, 0x00); // Append 80 bytes of 0x00
quint32 Count = 2; // The number we want to append to the ...
3
votes
1
answer
1k
views
Qt QBuffer bytes written cannot be read
A bit of confusion here: I'm trying to do this:
QBuffer _ourLogMessageBuffer;
QByteArray theLogMessage;
...
qDebug() << "Writing " << theLogMessage.size() << " bytes to buffer\n";
...
1
vote
1
answer
3k
views
Capture To Buffer QT
I'm trying to capture an Image using QT, and write the image buffer into an object of the QBuffer class instead of saving it to a file.
This is my code so far:
mBuffer->open(QBuffer::ReadWrite);...
1
vote
1
answer
1k
views
PyQt5 : QMediaPlayer can't replay audio from QBuffer
I have a QBuffer in RAM with a temporary wav file, and I want to let the user listen it from any point as many times as (s)he want. But, it only allows playing it once, and doesn't allow replaying it. ...
0
votes
1
answer
490
views
QtAV and cleaning of the buffer
I'm writing an application in Qt that permits the video streaming from a byte array.
As video output component I'm using QtAV (http://www.qtav.org/).
In my case the input of this component is a ...
0
votes
1
answer
998
views
Qt Buffer Underrun Playing RAW Audio
I try playing audio that is stored at void * data with length data_size but get the message: "Got a buffer underflow!"
int callback(void * data, long data_size) {
QBuffer audio_buffer;
...
0
votes
2
answers
2k
views
QBuffer from void pointer and memory size
I'm looking for the most simple and or elegant way to create a QBuffer in C++ Qt5.6 from void * data and long data_size.
I tried casting the void to a char pointer and using the QByteArray::...