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

[Bug]: Runtime error when built with Qt6: Must construct a QApplication before a QWidget #3829

Open
1 task done
a17r opened this issue Dec 30, 2024 · 7 comments
Open
1 task done

Comments

@a17r
Copy link
Contributor

a17r commented Dec 30, 2024

What did you do?

Built git master against Qt 6.8.1 successfully after applying #3828

What did you expect to see?

Successful application start

What did you see instead?

$ sqlitebrowser 
QWidget: Must construct a QApplication before a QWidget
Aborted

DB4S Version

3.13.99 (nightly)

What OS are you seeing the problem on?

Linux

OS version

Gentoo Linux

Relevant log output

$ sqlitebrowser 
QWidget: Must construct a QApplication before a QWidget
Aborted

Prevention against duplicate issues

  • I have searched for similar issues
@justinclift
Copy link
Member

@a17r Just to make sure I'm understanding ok (am super sleepy), now that #3828 has been merged this can be closed yeah? 😄

@a17r
Copy link
Contributor Author

a17r commented Dec 31, 2024

No, build succeeds, runtime does not.

@justinclift
Copy link
Member

No worries at all, glad I asked. 😄

@mgrojo
Copy link
Member

mgrojo commented Jan 1, 2025

@a17r, does it run ok on the commit introducing Qt6 support, i.e. 0635074 ?

@a17r
Copy link
Contributor Author

a17r commented Jan 2, 2025

@mgrojo
Copy link
Member

mgrojo commented Jan 2, 2025

Unfortunately I can't build from that commit (non-existing in git master).

Try with d824554 instead.

https://stackoverflow.com/questions/21590421/must-construct-a-qapplication-before-a-qwidget https://www.qtcentre.org/threads/61483-How-to-fix-error-Must-construct-a-QApplication-before-a-QWidget

I haven't found any widget that is created before the QApplication. But the MainWindow is created inside the Application constructor, but it has always been like that.

@a17r
Copy link
Contributor Author

a17r commented Jan 3, 2025

@mgrojo same runtime error when built at d824554

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

3 participants