qmenubar

MenuBar Not Showing for Simple QMainWindow Code, Qt Creator Mac OS

谁说胖子不能爱 提交于 2019-11-30 20:07:32
I have been having problems adding a menu item to the built in menu bar in a Qt desktop application. I copied the code provided in the QMainWindow class reference documentation for creating a menu to a very simple application. Unfortunately, it did not show up when the code was run. I am simply trying to add a “File” menu to the menu bar. I am running Mac OSX 10.9.3 and Qt Creator 5.3.1. The screenshots of my code are below. I tried both the uncommented and commented code in the mainwindow.cpp source. mainwindow.cpp #include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow

Setting Mac OSX Application Menu menu bar item to other than “Python” in my python Qt application

不打扰是莪最后的温柔 提交于 2019-11-28 08:25:22
I am writing a GUI application using python and Qt. When I launch my application on Mac, the first menu item in the Mac menu bar at the top of the screen is "Python". I would prefer the application name there to be the name of my application. How can I get my program name up there? The following demo program creates a window with two menus: "Python", and "Foo". I don't like that, because it makes no difference to my users whether I wrote the app in python or COBOL. Instead I want menus "MyApp" and "Foo". #!/usr/bin/python # This example demonstrates unwanted "Python" # application menu name on

PyQt WebEngineView interferes with MainMenu

风流意气都作罢 提交于 2019-11-27 16:29:53
I'm trying to create an application that contains a web browser within it, but when I add the web browser my menu bar visually disappears but functionally remains in place. The following are two images, one showing the "self.centralWidget(self.web_widget)" commented out, and the other allows that line to run. If you run the example code, you will also see that while visually the entire web page appears as if the menu bar wasn't present, you have to click slightly below each entry field and button in order to activate it, behaving as if the menu bar was in fact present. Web Widget Commented Out

Setting Mac OSX Application Menu menu bar item to other than “Python” in my python Qt application

眉间皱痕 提交于 2019-11-27 01:52:59
问题 I am writing a GUI application using python and Qt. When I launch my application on Mac, the first menu item in the Mac menu bar at the top of the screen is "Python". I would prefer the application name there to be the name of my application. How can I get my program name up there? The following demo program creates a window with two menus: "Python", and "Foo". I don't like that, because it makes no difference to my users whether I wrote the app in python or COBOL. Instead I want menus "MyApp

PyQt WebEngineView interferes with MainMenu

狂风中的少年 提交于 2019-11-26 18:39:21
问题 I'm trying to create an application that contains a web browser within it, but when I add the web browser my menu bar visually disappears but functionally remains in place. The following are two images, one showing the "self.centralWidget(self.web_widget)" commented out, and the other allows that line to run. If you run the example code, you will also see that while visually the entire web page appears as if the menu bar wasn't present, you have to click slightly below each entry field and