[Interest] QtQuick OpenGL support in Qt 6.2

2022-01-04 Thread Ramakanth Kesireddy
Hi all, I have QtQuick 2D application running on embedded device configured with eglfs( OpenGL ES2.x). Inorder to port the application to Qt 6.2, Does openGL support is available in Qt 6.2 when configured with eglfs or there any attribute to set so that QtQuick application works with openGL ES2.x

Re: [Interest] QSyntaxHighlighter change QTextBlockFormat

2022-01-04 Thread Tony Rietwyk
On 5/01/2022 3:30 pm, Joshua Grauman wrote: Hi all, I have been researching how to have a QSyntaxHighlighter change QTextBlockFormat. I need my syntax highlighter to change the indent, left and right margins, line height, etc. of a QTextDocument/QTextEdit. I was able to have my class derive

[Interest] QSyntaxHighlighter change QTextBlockFormat

2022-01-04 Thread Joshua Grauman
Hi all, I have been researching how to have a QSyntaxHighlighter change QTextBlockFormat. I need my syntax highlighter to change the indent, left and right margins, line height, etc. of a QTextDocument/QTextEdit. I was able to have my class derived from QSyntaxHighlighter change the QTextBlo

Re: [Interest] Qthread from QFuture?

2022-01-04 Thread Konstantin Shegunov
On Wed, Jan 5, 2022 at 3:03 AM Scott Bloom wrote: > Its such a nice simple interface for launching a background thread and > asynchronously being notified when it finishes 😊 > The point is that it doesn't start a thread at all, not necessarily. The threads are pooled and your job is queued for e

[Interest] Low frame rate in rendering custom opengl code in Qt Quick

2022-01-04 Thread Daljit Singh
Hi, I'm using a third party library (Skia) to render custom opengl code in sync with the QtQuick Scene Graph (Qt 5.15 on Windows 11). I'm using the QQuickFramebufferObject and QSGRenderNode classes to create custom QQuickItems to render my scene. The approach works fine, but I've come across a v

Re: [Interest] Qthread from QFuture?

2022-01-04 Thread Scott Bloom
I appreciate the information. However, I don’t understand why a QFuture created by QtConcurrent::run, if it can tell isRunning, why it cant return the QThread its using? Unless there is simply no QThread, and its using all OS calls (which could make sense). ::exit( 0 ) would be too abrupt, bu

Re: [Interest] Qthread from QFuture?

2022-01-04 Thread Thiago Macieira
On Tuesday, 4 January 2022 16:07:05 -03 Scott Bloom wrote: > Is there anyway to get (if it even exists) a QThread from a > QFuture/QFutureWatcher? You can't get it because a thread will not have been assigned until the job starts. The thread that ends up running your job may be any of the threads

Re: [Interest] [Qt6] QML_ATTACHED failing with ::QQmlPrivate not declared

2022-01-04 Thread Konstantin Shegunov
On Mon, Jan 3, 2022 at 11:21 AM Ulf Hermann wrote: > > So, did I stumble on a bug? > > Including qqml.h instead of qqmlregistration.h should work. > Thanks! Indeed, that does fix it cleanly for me. Just noting: similarly I had 'undeclared qRegisterXXX' for the singleton if I forward declare QQm

Re: [Interest] Qthread from QFuture?

2022-01-04 Thread Elvis Stansvik
I don't think QFuture/QFutureWatcher would have such an API. I guess you could query what thread it is at the start of the function you run with QtConcurrent::run and communicate that to your main thread. Elvis Den tis 4 jan. 2022 kl 20:08 skrev Scott Bloom : > > Is there anyway to get (if it eve

[Interest] Qthread from QFuture?

2022-01-04 Thread Scott Bloom
Is there anyway to get (if it even exists) a QThread from a QFuture/QFutureWatcher? The main issue, and I know this going to sound horrible, I would like to kill/terminate the thread, I know its safe 😊 (famous last words).. Here is what im doing, maybe someone has a better solution (Im sure of

Re: [Interest] QTextLayout::setPreeditArea()

2022-01-04 Thread Volker Hilsheimer
> On 4 Jan 2022, at 01:33, John Weeks wrote: >> On Jan 3, 2022, at 2:31 PM, Joshua Grauman wrote: >> >> Hi all, >> >> I am working on using QTextLayout and I was wondering if someone could give >> me a quick explanation for what preedit text / preedit area was in this >> context? There's not