Не работает кнопка диалогового окна, как исправить?

Столкнулся с проблемой при написании курсовой работы по теме упорядочивание массивов, что одна из кнопок диалогового окна не функционирует. Подробно в фото: кнопка Pyramid Sort не работает введите сюда описание изображения

Ожидал появлению другого диалогового окна, как в случае с кнопкой Shell sort, которая работает: введите сюда описание изображения

думаю проблема в том что где-то я не обьявил функционал окна, сейчас приложу код: файл MainWindow.ui

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>455</width>
    <height>360</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>MainWindow</string>
  </property>
  <widget class="QWidget" name="centralWidget">
   <widget class="QListView" name="listView">
    <property name="geometry">
     <rect>
      <x>20</x>
      <y>0</y>
      <width>401</width>
      <height>191</height>
     </rect>
    </property>
   </widget>
   <widget class="QPushButton" name="pushButton">
    <property name="geometry">
     <rect>
      <x>180</x>
      <y>210</y>
      <width>93</width>
      <height>28</height>
     </rect>
    </property>
    <property name="text">
     <string>Sort</string>
    </property>
   </widget>
  </widget>
  <widget class="QMenuBar" name="menuBar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>455</width>
     <height>21</height>
    </rect>
   </property>
   <widget class="QMenu" name="menuSorting">
    <property name="title">
     <string>Sorting</string>
    </property>
    <addaction name="actionShell_Sort"/>
    <addaction name="separator"/>
    <addaction name="actionPyramid_sort"/>
    <addaction name="separator"/>
   </widget>
   <addaction name="menuSorting"/>
  </widget>
  <widget class="QToolBar" name="mainToolBar">
   <attribute name="toolBarArea">
    <enum>TopToolBarArea</enum>
   </attribute>
   <attribute name="toolBarBreak">
    <bool>false</bool>
   </attribute>
  </widget>
  <widget class="QStatusBar" name="statusBar"/>
  <action name="actionShell_Sort">
   <property name="text">
    <string>Shell Sort</string>
   </property>
  </action>
  <action name="actionPyramid_sort">
   <property name="text">
    <string>Pyramid sorting</string>
   </property>
  </action>
  <action name="actionPyramid_sort">
   <property name="text">
    <string>Pyramid sort</string>
   </property>
  </action>
  <action name="actionSelection_sort">
   <property name="text">
    <string>Selection sort</string>
   </property>
  </action>
 </widget>
 <layoutdefault spacing="6" margin="11"/>
 <resources/>
 <connections/>
</ui>

помогите пожалуйста, если необходимо приложу еще фото или отдельный код.


Ответы (0 шт):