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

Qt6: Adjustments #11804

Merged
merged 9 commits into from
Oct 28, 2024
Merged

Qt6: Adjustments #11804

merged 9 commits into from
Oct 28, 2024

Conversation

magnesj
Copy link
Member

@magnesj magnesj commented Oct 22, 2024

Closes #11823
Closes #11816

In Qt6, the insertWidget function checks if the index parameter is valid based on current widgets present in the layout. This is error prone, and use addWidget to avoid manual counting of index.

There are some places where insertWidget is still used, but it will require more work to fix these.
@magnesj magnesj marked this pull request as ready for review October 25, 2024 07:15
@magnesj magnesj requested a review from kriben October 25, 2024 07:15
Copy link
Collaborator

@kriben kriben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the exactMatch replacements. Also think I found an index bug..

Replace use of QRegExp with QRegularExpression
Remove dependency on qt5compat module
Simplify an expression based on review
Run of regression tests in debug mode failed
The call stack when this assert happens indicates that there are more signals to be disconnected from the object. Crash is fixed by disconnecting all signals.

Assert seen in debug build:

ASSERT failure in caf::Viewer: "Called object is not of the correct type (class destructor may have already run)", file C:\Qt\6.6.3\msvc2019_64\include\QtCore/qobjectdefs_impl.h, line 130
Guard null pointer use in view linker. Remove complicated cleanup in destructor in Rim3dVew.
@magnesj magnesj merged commit 2814b92 into dev Oct 28, 2024
17 checks passed
@magnesj magnesj deleted the qt6-adjustments branch October 28, 2024 12:09
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

Successfully merging this pull request may close these issues.

Qt6 fixes and improvements caf::Viewer ASSERT when closing view
2 participants