[GH-ISSUE #149] "ERROR: No native Menu implementation available" #90

Open
opened 2026-05-05 11:04:15 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @vadi2 on GitHub (Jul 3, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/149

A user on Ubuntu 18.04 is getting the following warnings:

ERROR: No native Menu implementation available.
Qt Labs Platform requires Qt Widgets on this setup.
Add 'QT += widgets' to .pro and create QApplication in main().

What could be going wrong? I'm using the FileDialog from Qt.labs.platform 1.1. Using the experimental one because it works slightly better than the non-experimental one on Windows: both take a really long time to open (30s+) while they try to enumerate network drives...

Originally created by @vadi2 on GitHub (Jul 3, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/149 A user on Ubuntu 18.04 is getting the following warnings: ``` ERROR: No native Menu implementation available. Qt Labs Platform requires Qt Widgets on this setup. Add 'QT += widgets' to .pro and create QApplication in main(). ``` What could be going wrong? I'm using the `FileDialog` from `Qt.labs.platform 1.1`. Using the experimental one because it works _slightly_ better than the non-experimental one on Windows: both take a really long time to open (30s+) while they try to enumerate network drives...
Author
Owner

@pauldotknopf commented on GitHub (Jul 9, 2019):

It looks like we need to add QT += widgets into this file.

Do you have a minimal Main.qml to reproduce so that I can test it locally?

<!-- gh-comment-id:509555083 --> @pauldotknopf commented on GitHub (Jul 9, 2019): It looks like we need to add ```QT += widgets``` into [this](https://github.com/qmlnet/qmlnet/blob/develop/src/native/QmlNet/QmlNet.pro) file. Do you have a minimal ```Main.qml``` to reproduce so that I can test it locally?
Author
Owner

@vadi2 commented on GitHub (Jul 9, 2019):

I'm afraid no, this was reported by a user - I'm not getting the same issue (https://github.com/health-validator/Hammer/issues/115). We can ask them to test a build, though!

<!-- gh-comment-id:509560842 --> @vadi2 commented on GitHub (Jul 9, 2019): I'm afraid no, this was reported by a user - I'm not getting the same issue (https://github.com/health-validator/Hammer/issues/115). We can ask them to test a build, though!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#90
No description provided.