Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Main menu is not displayed in MacOS 10.15
Qt 6.11 is out! See what's new in the release blog

Main menu is not displayed in MacOS 10.15

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 2 Posters 809 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PythonQTMarlem
    wrote on last edited by
    #1

    Hello,

    I'm developing a text editor with Python and Qt.
    The main menu appears in Windows 10.
    The main menu is displayed in Ubuntu.
    The main menu is not displayed in MacOS 10.15.

    I create the menu as follows:

    editormenu = self.menuBar ()
    

    The following error message appears:
    Unable to create basic Accelerated OpenGL renderer.
    Unable to create basic Accelerated OpenGL renderer.
    Core Image is now using the software OpenGL renderer. This will be slow.

    Two ideas from me that could be:

    1. at the integration of the window icon: self.setWindowIcon (QIcon ("PQT-Texteditor.png"))
    2. Not enough main memory because MacOS is running in a virtual machine

    Question:
    Who knows why the main menu is not displayed under MacOs?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt and PySide2 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PythonQTMarlem
        wrote on last edited by
        #3

        qmake --version
        QMake version 3.1
        Using Qt version 5.9.7 in C:/ProgramData/Anaconda3/Library/lib

        PySide i don't use.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          So you are using PyQt5 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PythonQTMarlem
            wrote on last edited by PythonQTMarlem
            #5

            yes, that is right!
            from PyQt5 import QtCore, QtWidgets, QtGui, QtPrintSupport
            from PyQt5.QtWidgets import *
            from PyQt5.QtCore import QSize, Qt
            from PyQt5.QtGui import QFont, QFontDatabase, QTextCursor, QTextCharFormat, QTextDocument, QColor, QIcon
            from PyQt5.QtPrintSupport import QPrintDialog, QPrinter

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              So which version of PyQt5 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • P Offline
                P Offline
                PythonQTMarlem
                wrote on last edited by
                #7

                i don't understand the question.
                Why there is different versions?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  PyQt5 is the name of the package. It has a version number. Qt also has a version number, you are using Qt 5.9.7. PyQt5's version number does not necessarily follow the one from Qt.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    PythonQTMarlem
                    wrote on last edited by
                    #9

                    okay, how i can find out the version of PyQt5?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      With "conda list" for example.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        PythonQTMarlem
                        wrote on last edited by
                        #11

                        okay.
                        pyqt 5.9.2 in Windows.
                        in MacOS it should be the same, cause between the installation anaconda in windows and MacOs, was just 4 weeks.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          It seems that there's something going on with macOS 10.15 and the menu bar. Other non Qt application also have issues with it.

                          You should check the bug report system

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved