Hi Dominik,

As i noted, if I disable Accessibility via PACKAGECONFIG, I see the
following warning:
"WARNING: Accessibility disabled. This configuration of Qt is unsupported."
In older versions (e.g.
https://code.qt.io/cgit/qt/qtbase.git/tree/configure?h=5.7#n2473)
you can also find this warning:
"Disabling accessibility is not recommended, as it will break QStyle and
may break other internal parts of Qt. With this switch you create a source
incompatible version of Qt, which is unsupported."

Based on these warnings, I am bit concerned about disabling Accessibility,
even though our QML C++ app does not use QStyle, QAccessible* or
QTestAccessibility classes
Should i just ignore the warning ? What about bug reports (both
commercial/non-commercial), will they be accepted with this build option ?

thanks,
Michal



On Wed, Jun 11, 2025 at 1:59 PM Dominik Holland <dominik.holl...@qt.io>
wrote:

> Hi Michal,
>
> that dependency is only used when the accessibility PACKAGECONFIG is set.
>
> If you don't need accessibility in your Qt build, then just remove
> accessibility from the PACKAGECONFIG variable and the dependency should
> be gone as well.
>
> Dominik
>
> Am 11.06.25 um 10:32 AM schrieb Michal Šebeň:
> > Hello,
> > While switching to a newer Qt version using meta-qt6, I noticed there
> > is a new dependency on at-spi2-core. See this MR:
> > https://codereview.qt-project.org/c/yocto/meta-qt6/+/627017
> >
> > Is there a reason why this additional dependency on at-spi2-core for
> > Accessibility is generally enforced ? According to
> > qtbase/src/gui/configure.cmake, building Qt with Accessibility
> > disabled is unsupported. So even if I don't need Accessibility
> > features in my QML app, I still need to keep it enabled in qtbase
> > build. Enforcing more dependencies like at-spi2-core,which are not
> > always needed, doesn't seem right to me.
> >
> > Would be this line acceptable as a merge request for
> > recipes-qt/qt6/qtbase_git.bb
> > <http://qtbase_git.bb/>
> > or did i missed something in my thoughts about enforced dependency or
> > disabled accessibility build support ?
> > ACCESSIBILITY_DEPENDS = "${@bb.utils.contains('PACKAGECONFIG',
> > 'atspibridge', bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland',
> > 'at-spi2-core', '', d), '', d)}"
> >
> > thanks,
> > Michal
> >
>
-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to