Skip to content

Things have been deprecated in Qt 6 #186

Open
@ratijas

Description

@ratijas

This is a tracking issue for an upgrade process ongoing to adapt wrappers to major changes in Qt 6.

Some functionality have been completely removed in Qt 6, while others were only deprecated for the time being. One such class is QMouseEvent which is now full of deprecated methods. What's worse, they are not actually rendered as deprecated in official documentation (QTBUG-95310). (fixed)

So, currently our Qt 6 builds are flashing with warnings coming from C++ compiler.

The task is to

  1. forward those deprecation warnings to Rust using #[deprecated] attribute in tandem with some sort of #[cfg_if(qt_6_0)] versioning;
  2. modify wrappers such that they don't produce warnings just because we merely compile them as part of out wrappers framework; i.e. don't shoot the messenger — only blame users who actually use those methods.
  3. Fix things that should actually be fixed (upgraded) on qmetaobject-rs side.

List of warnings:

All links are hard-wired to commit b81438c to avoid ambiguity. Use git blame to locate them within latest changes.

Also,

  • make a tutorial for qmetaobject-rs developers on how to deal with deprecated functionality while still keeping backward compatibility with Qt 5 and earlier versions of Qt 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: documentation for any part of the projectsA-wrappersArea: Wrappers and bindingsC-tracking-issueCategory: A tracking issue for an RFC or an unstable feature.E-mediumCall for participation: Experience needed to fix: Medium / intermediate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions