Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. PyQt doesn't understand &
Forum Updated to NodeBB v4.3 + New Features

PyQt doesn't understand &

Scheduled Pinned Locked Moved Solved Language Bindings
28 Posts 6 Posters 14.9k Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #21

    What do you get if you make it verbose ?

    By the way, you may avoid much of the hassle by using pip/pip3 do install PyQt5.

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

    U 1 Reply Last reply
    0
    • SGaistS SGaist

      What do you get if you make it verbose ?

      By the way, you may avoid much of the hassle by using pip/pip3 do install PyQt5.

      U Offline
      U Offline
      user4592357
      wrote on last edited by
      #22

      @SGaist
      i installled using the command at first place when i got all this mess.
      and this is --verbose

      python.exe .\configure.py --qmake C:\Qt\Qt5.10.1\5.10.1\msvc2015_64\bin\qmake
      .exe --verbose
      Querying qmake about your Qt installation...
      Determining the details of your Qt installation...
      C:\Qt\Qt5.10.1\5.10.1\msvc2015_64\bin\qmake.exe -o cfgtest_QtCore.mk cfgtest_QtCore.pro
      Project ERROR: Cannot run compiler 'cl'. Output:
      ===================
      ===================
      Maybe you forgot to setup the environment?
      Error: Failed to determine the detail of your Qt installation. Try again using
      the --verbose flag to see more detail about the problem.
      
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #23

        From the looks of it, you're doing that from a console that's not configured to use Visual Studio 2015. You should either call the vcvars script with the correct parameters or start the console through the Visual Studio start menu.

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

        U 1 Reply Last reply
        0
        • SGaistS SGaist

          From the looks of it, you're doing that from a console that's not configured to use Visual Studio 2015. You should either call the vcvars script with the correct parameters or start the console through the Visual Studio start menu.

          U Offline
          U Offline
          user4592357
          wrote on last edited by user4592357
          #24

          @SGaist
          i opened vs native tools x64 cmd and run the install command - same output.

          i run C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\vsdevcmd\ext\vsvars.bat from vs tools->command prompt menu, then run the install command - same output.

          EDIT: i uninstalled current version and installed with pip install PyQt5 (and not pip3, as before) and got the lastest versions:

          Qt version: 5.10.0
          SIP version: 4.19.7
          PyQt version: 5.10
          

          but:
          pylint errors about imports aren't gone
          the letter isn't still underlined. it's how @KevinKSyd said - only shows on alt key press

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

            Pylint might not find everything and you may have to help it searching for your dependencies.

            As for the underline, it’s a Windows behavior.

            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
            • R Offline
              R Offline
              Rodrigo B.
              wrote on last edited by
              #26

              I thought "&" was not working in my PyQt Windows project menus, but it turned out that the underscore only appears when Alt is being pressed.

              SGaistS 1 Reply Last reply
              0
              • R Rodrigo B.

                I thought "&" was not working in my PyQt Windows project menus, but it turned out that the underscore only appears when Alt is being pressed.

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #27

                @Rodrigo-B hi and welcome to devnet,

                As already written, the accelerators are not permanently shown on Windows.

                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
                • SGaistS SGaist

                  Hi,

                  No it's not, the underline represent the accelerator you set by using the & sign in your action name.

                  L Offline
                  L Offline
                  lang2524
                  Banned
                  wrote on last edited by
                  #28
                  This post is deleted!
                  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