Chat::Chat(QWidget *parent)

    : QDialog(parent),  currentAdapterIndex(0), ui(new Ui_Chat)

{

...


클래스 constructor 부분인데


뒤에 : 가 붙었으니까 Constructor 상속이니까


생성할때

QDialog(parent)의 constructor를 실행하고


currentAdapatorIndex는 int형이니까 currentAdaaptorIndex = 0  으로 초기화하고


ui는 Ui_Chat 클래스 인스턴스인데, 


그럼 ui = new Ui_Chat(new Ui_Chat) 이렇게 되는건가요?