Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19727

Alt-N (accelerator key) doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.5.0
    • Editors
    • None

    Description

      I'm just starting to use Qt Creator on Windows 10. I'm going through the Notepad example at this site http://doc.qt.io/qt-5/gettingstartedqt.html. When I get to the Qt Widgets Application "Details" step, I enter the class name and press alt-N. Instead of "+N+ext" occurring, a small "n" is appended to my class name. The example has a "+B+ack" button. My window doesn't. Prior to this step there are two other windows 1) to enter project location 2) to select a kit; these are NOT in the example. I chose Desktop Qt 5.10.0 MinGW 32bit. Is this OK? Right now, I don't know enough to know. I would prefer a 64 bit compiler. When I began the example, I naively assumed that Qt Designer would do everything. I would drag-n-drop, click-n-tick, and ALL the associated code would be the result. No, QtD produces only SOME of the code; I have to fill in the rest. As a beginner, this is, to say the least, NOT possible. By the way, I could NEVER figure out how to right-click actionNew to fiddle with the trigger stuff because actionNew wasn't present to right-click like open, save, etc. Yeah, eventually I will know enough to know what to do and how to do it but at that point I will prefer to hand code it. The only reason I installed Qt Creator was to use Qt Designer to answer a question: How can I force some buttons in a horizontal box layout to start on the left and proceed to the right instead of the default R-to-L. (Who dreamed this up?) Nothing I tried had any effect. Here's one whack:

      wid = QFrame(self)
      self.setCentralWidget(wid)
      
      #self.createHorizontalLayout()
      horizontalGroupBox = QFrame(self) #QGroupBox("Honk")
      horizontalGroupBox.setFrameShape(QFrame.StyledPanel)
      hBox = QHBoxLayout()
      hBox.setContentsMargins(0, 0, 0, 0)
      hBox.setSpacing(0)
      hBox.setAlignment(Qt.AlignLeft)
      #hBox.setLayoutDirection(Qt.LeftToRight)
      hBox.addStretch(1)
      
      aButton = QPushButton("A", self)
      aButton.resize(aButton.sizeHint())
      hBox.addWidget(aButton)
      
      bButton = QPushButton("B", self)
      hBox.addWidget(bButton)
      
      horizontalGroupBox.setLayout(hBox)
      
      vbox = QVBoxLayout()
      vbox.addStretch(1)
      vbox.addWidget(horizontalGroupBox)
      wid.setLayout(vbox)
      
      

      The buttons stay on the right. I know my lack of understanding is at work here.

      When I first ran Qt Creator, my impression was that this sure looks a lot like Visual Studio.

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              davschul David Schulz
              bloodbringer Thomas O'Neal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes