Automatically Generated UI Headers in Qt

前端 未结 1 1447
清歌不尽
清歌不尽 2021-01-07 11:28

I\'m working in Qt creator and am somewhat confused. When I generated a UI file in Qt Designer, I have noticed that there is an associated header file loaded in the cpp file

1条回答
  •  借酒劲吻你
    2021-01-07 11:45

    This file is generated by the Qt User Interface Compiler which converts the XML format *.ui to the C++ header ui_*.h.

    It basically contains the definition of the class Ui::MainWindow (the one that has the definition of the function ui->setupUi(this)). To view its contents in Qt creator just hold the ctrl key and place your mouse pointer over the file name, you will notice that it will turn into a link, click on it.

    0 讨论(0)
提交回复
热议问题