本文整理汇总了C++中MainWindow::CenterWidget方法的典型用法代码示例。如果您正苦于以下问题:C++ MainWindow::CenterWidget方法的具体用法?C++ MainWindow::CenterWidget怎么用?C++ MainWindow::CenterWidget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainWindow
的用法示例。
在下文中一共展示了MainWindow::CenterWidget方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MainWindow
void CGen3UIManager::initAppHMI()
{
#ifdef ANDROID
UIConfig::loadResolution(QApplication::desktop()->width(),QApplication::desktop()->height()-30);
#else
UIConfig::loadResolution(800,480);
#endif
MainWindow * pMain = new MainWindow(m_pList);
QWidget* pParent = pMain->CenterWidget();
m_vUIWidgets[ID_APPLINK] = new CAppListView(m_pList, pParent);
m_vUIWidgets[ID_CHOICESET] = new CChoiceSet(m_pList, pParent);
m_vUIWidgets[ID_COMMAND]=new CCommandView(m_pList, pParent);
m_vUIWidgets[ID_SHOW] = new CMediaShow(m_pList,pParent);
m_vUIWidgets[ID_ALERT]=new AlertView(m_pList, pParent);
m_vUIWidgets[ID_AUDIOPASSTHRU]=NULL;//new CAudioPassThru(m_pList, pParent);
m_vUIWidgets[ID_CHOICESETVR]=NULL;//new CChoicesetVR(m_pList, pParent);
m_vUIWidgets[ID_SCROLLMSG] = new CScollMsgView(m_pList, pParent);
m_vUIWidgets[ID_SLIDER] = new CSliderView(m_pList, pParent);
m_vUIWidgets[ID_NOTIFY]=NULL;//new Notify(pParent);
m_vUIWidgets[ID_MEDIACLOCK] = NULL;
m_vUIWidgets[ID_MAIN] = pMain;
m_vUIWidgets[ID_DEVICEVIEW] = new CDeviceListView(m_pList, pParent);
#ifndef WINCE
#ifdef ANDROID
JniNative jNative;
jNative.registerNativeMethods();
m_vUIWidgets[ID_VIDEOSTREAM] = new MediaCodecStream(m_pList,pMain);
#else
m_vUIWidgets[ID_VIDEOSTREAM] = new VideoStream(m_pList,pMain);
#endif
#else
m_vUIWidgets[ID_VIDEOSTREAM] = new CeVideoStream(m_pList,pMain);
#endif
for (int i = 0; i < ID_UI_MAX; ++i) {
if (m_vUIWidgets[i] != NULL) {
m_vUIWidgets[i]->hide();
}
}
m_iCurUI = ID_MAIN;
#ifdef SDL_SUPPORT_LIB
//m_MspVR = new msp_vr_audio;
#endif
//
connect(this,SIGNAL(onAppShowSignal(int)),this,SLOT(AppShowSlot(int)));
connect(this,SIGNAL(onVideoStartSignal()),this,SLOT(onVideoStartSlots()));
connect(this,SIGNAL(onVideoStopSignal()),this,SLOT(onVideoStopSlots()));
connect(this,SIGNAL(OnAppUnregisterSignal(int)),this,SLOT(OnAppUnregisterSlot(int)));
//emit finishMainHMI();
}