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

Could not create MenuBar options without interface errors #12

Open
morgadow opened this issue Dec 1, 2023 · 0 comments
Open

Could not create MenuBar options without interface errors #12

morgadow opened this issue Dec 1, 2023 · 0 comments

Comments

@morgadow
Copy link

morgadow commented Dec 1, 2023

Hello,
i experienced this following error an i think it is because Qt5 higher versions are not supported fully by this code anymore.
Therefore an fix OR an information which versions of Qt are supported would be highly appreciated :)

The error:

I created an UI file using QtDesigner 5.15.2.
I added several menubar options (Menu, Settings, Help) items with several actions (Change Language, Open Help File, ... ).

As i translated this to go code and run the code, i got following error:

ui\uigen\main_ui.go:100:38: cannot use this.MenuChangeLanguage (variable of type *widgets.QMenu) as type widgets.QAction_ITF in argument to this.MenuSettings.QWidget.AddAction:
	*widgets.QMenu does not implement widgets.QAction_ITF (missing QAction_PTR method) (exit status 2)

This is a screenshot of the created Go code for a clearer understanding on the Menubar options and items.
The error from above is at line 100.
grafik

I tried several things:

  1. Deleting all options and leaving blank menubar:
    grafik
    grafik

  2. Deleting every menubar item and leaving it blank, which works nice.

@morgadow morgadow changed the title Could not create MenuBar options without infterface errors Could not create MenuBar options without interface errors Dec 1, 2023
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

1 participant