Skip to content

QR code is stretched horizontally within its window #8944

@phallobst

Description

@phallobst

Overview

Resizing the QR code display window horizontally distorts the QR code itself, i.e. it's not square anymore.

Steps to Reproduce

  1. Select "TOTP / Show QR Code" from the context menu of an entry.
  2. Resize the window horizontally.

Expected Behavior

The QR code should always be square, centered and as large as possible within the limits of its allocated window are. (If the window is resized vertically, the program behaves correctly.)

Actual Behavior

The QR code is stretched horizontally, covering the whole width of the window. Scanning it with a smartphone camera will not work correctly.

Context

KeePassXC - Version 2.7.4
Revision: 63b2394
Qt 5.15.3

Operating System: Linux
Desktop Env: Cinnamon
Windowing System: X11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions