Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when changing application style from qlementine to a non-qlementine style #45

Open
IoeCmcomc opened this issue Dec 14, 2023 · 1 comment
Milestone

Comments

@IoeCmcomc
Copy link

The sandbox example crashes when the application style changes from QlementineStyle to a non-qlementine style (e.g. fusion or windowsvista) after the main window (SandboxWindow) is created.

How to reproduce:

  1. In main.cpp file, comment out window->setCustomStyle(style);
  2. In main.cpp file, put the following code after main window creation: qApplication.setStyle("fusion");
  3. Uncomment the following line in SanboxWindow.cpp: _impl->setupUI_lineEdit();
  4. Compile and run the sandbox
  5. The application crashes

The app seems to crash when there is a QLineEdit. The crash doesn't occur with other non-qlementine widgets, but visual glitches appear (I'll report that later).

Debug information:

OS: Windows 11 23H2
Toolkit: Qt 5.15.2 MSVC2019 32-bit (compiler error with MinGW)
Compile mode: Debug
Crash location: EventFilters.cpp, line 65 in method oclero::qlementine::LineEditButtonEventFilter::eventFilter

@oclero
Copy link
Owner

oclero commented Dec 16, 2023

Thank you! Probably some event filter that still have a ref to QlementineStyle, or something like this.

@oclero oclero added this to the 1.2.0 milestone Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants