[QT] Add custom component ui class to main ui interface method

1. Add custom components to the project

  • add new
  • Choose from the following
    Insert image description here
  • Write the class method and confirm it

2. Add the newly created ui class to the main ui interface

  • Select the empty block of the parent class of the newly created ui class, right-click and select提升为
    Insert image description here
  • Select and add the newly created class
    Insert image description here

Guess you like

Origin blog.csdn.net/qq_43537701/article/details/133501289