1.프로젝트 우클릭 -> new -> dialog with class file 클릭


2.생성된 ui파일 작성.


1
2
3
4
5
6
7
8
9
10
11
12
13
    //객체 생성 후
    dbList = new dbDialog(this);
 
 
    //시그널 - 슬롯 연결
 
    connect(this            , &MainWindow  :: setdbList       , dbList , &dbDialog   :: onListRecv         );
    connect(dbList          , &dbDialog    :: dbItemSelected  , this   , &MainWindow :: onDbItemSelected   );
 
    //다이얼로그 표시
    dbList->setModal(true);
    dbList->show();
 
cs


+ Recent posts