Re: [Interest] Bug#1070406: Qt5: badly clips some fonts when rendering to PDFs

2024-05-06 Thread Thorsten Glaser
Dixi quod… >Dmitry Shachnev dixit: >>Now that you dug so deeply, maybe you can try to replace qRound in those >>three lines that you mentioned with TO_TTF, and check if it fixes the bug > >That *and* figure out somehow how to fix the PDF /FontBBox, at >least… (though I binary-patched the hhea ascen

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread Ulf Hermann via Interest
Not possible as in this case it assumes the same version as the module that qmldirs belongs to Looks like qmlRegisterModuleImport() is also available (and undocumented) in Qt 5.15 and it does allow you to specify versions: https://doc.qt.io/qt-6/qqmlengine.html#qmlRegisterModuleImport best r

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread NIkolai Marchenko
Not possible as in this case it assumes the same version as the module that qmldirs belongs to On Tue, May 7, 2024 at 9:40 AM Ulf Hermann wrote: > > I don't think it works, adding `import QtQuick.Layouts 1.15` to qmldir > > of that module produces an error "import requires 2 arguments, but 2 >

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread Ulf Hermann via Interest
I don't think it works, adding `import QtQuick.Layouts 1.15` to qmldir of that module produces an error  "import requires 2 arguments, but 2 were provided" In Qt5 you couldn't specify the version, yet. Try with only: import QtQuick.Layouts best regards, Ulf ___

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread NIkolai Marchenko
I don't think it works, adding `import QtQuick.Layouts 1.15` to qmldir of that module produces an error "import requires 2 arguments, but 2 were provided" On Mon, May 6, 2024 at 9:13 PM Ulf Hermann via Interest < interest@qt-project.org> wrote: > On 5/6/24 18:12, NIkolai Marchenko wrote: > > Is

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread Ulf Hermann via Interest
On 5/6/24 18:12, NIkolai Marchenko wrote: Is there a way to automatically import qtquick.layouts while importing a custom module inside of qml file? If you control the custom module and are OK with anyone importing the custom module always also importing QtQuick.Layouts, then yes. There is IM

[Interest] Qt 6.7: How to set the blend equation when doing blend on updateGraphicsPipelineState?

2024-05-06 Thread Nuno Santos via Interest
Hi, I’m porting an app from Qt 5.15 to Qt 6.7 but I’m stumbling on the fact that there is no equivalent to blend equation in OpenGL. Note: At the time being, I’m still using OpenGL as graphics backend to minimise the already huge ongoing port. To achieve blending mode between nodes, I was usi

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread NIkolai Marchenko
Is there a way to automatically import qtquick.layouts while importing a custom module inside of qml file? On Mon, May 6, 2024 at 6:36 PM Thiago Macieira wrote: > On Monday 6 May 2024 04:24:50 GMT-7 Ulf Hermann via Interest wrote: > > > That's poor programming practice. > > > > No. > > I meant t

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread Thiago Macieira
On Monday 6 May 2024 04:24:50 GMT-7 Ulf Hermann via Interest wrote: > > That's poor programming practice. > > No. I meant that attempting to search for a metatype by name, of a class that may or may not be registered, which itself is a private class. -- Thiago Macieira - thiago.macieira (AT) i

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread Ulf Hermann via Interest
... Of course it only does that if you actually import QtQuick somewhere. Correction: You need to import QtQuick.Layouts, not QtQuick for QQuickLayout to get registered. best regards, Ulf ___ Interest mailing list Interest@qt-project.org https://lis

Re: [Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

2024-05-06 Thread Ulf Hermann via Interest
That means it's relying on some automatic registration somewhere, somehow. QQuickLayout has a QML_NAMED_ELEMENT macro which means it's picked up by qmltyperegistrar which does what it says. Of course it only does that if you actually import QtQuick somewhere. That's probably the difference be