您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ windowClosed函数代码示例

51自学网 2021-06-03 09:57:33
  C++
这篇教程C++ windowClosed函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中windowClosed函数的典型用法代码示例。如果您正苦于以下问题:C++ windowClosed函数的具体用法?C++ windowClosed怎么用?C++ windowClosed使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了windowClosed函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: windowClosed

TutorialApplication::~TutorialApplication(){    /* Remove ourself as a Window listener */    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    delete mRoot;}
开发者ID:JDongian,项目名称:ogre-pong,代码行数:7,


示例2: asQuickItem

/**jsdoc * @typedef {object} OverlayWindow.Properties * @property {string} title * @property {string} source * @property {number} width * @property {number} height * @property {boolean} visible */void QmlWindowClass::initQml(QVariantMap properties) {#ifndef DISABLE_QML    auto offscreenUi = DependencyManager::get<OffscreenUi>();    _source = properties[SOURCE_PROPERTY].toString();    auto objectInitLambda = [&](QQmlContext* context, QObject* object) {        _qmlWindow = object;        context->setContextProperty(EVENT_BRIDGE_PROPERTY, this);        context->engine()->setObjectOwnership(this, QQmlEngine::CppOwnership);        context->engine()->setObjectOwnership(object, QQmlEngine::CppOwnership);        if (properties.contains(TITLE_PROPERTY)) {            object->setProperty(TITLE_PROPERTY, properties[TITLE_PROPERTY].toString());        }        if (properties.contains(HEIGHT_PROPERTY) && properties.contains(WIDTH_PROPERTY)) {            uvec2 requestedSize { properties[WIDTH_PROPERTY].toUInt(), properties[HEIGHT_PROPERTY].toUInt() };            requestedSize = glm::clamp(requestedSize, MIN_QML_WINDOW_SIZE, MAX_QML_WINDOW_SIZE);            asQuickItem()->setSize(QSize(requestedSize.x, requestedSize.y));        }        bool visible = !properties.contains(VISIBILE_PROPERTY) || properties[VISIBILE_PROPERTY].toBool();        object->setProperty(OFFSCREEN_VISIBILITY_PROPERTY, visible);        object->setProperty(SOURCE_PROPERTY, _source);        const QMetaObject *metaObject = _qmlWindow->metaObject();        // Forward messages received from QML on to the script        connect(_qmlWindow, SIGNAL(sendToScript(QVariant)), this, SLOT(qmlToScript(const QVariant&)), Qt::QueuedConnection);        connect(_qmlWindow, SIGNAL(visibleChanged()), this, SIGNAL(visibleChanged()), Qt::QueuedConnection);        if (metaObject->indexOfSignal("resized") >= 0)            connect(_qmlWindow, SIGNAL(resized(QSizeF)), this, SIGNAL(resized(QSizeF)), Qt::QueuedConnection);        if (metaObject->indexOfSignal("moved") >= 0)            connect(_qmlWindow, SIGNAL(moved(QVector2D)), this, SLOT(hasMoved(QVector2D)), Qt::QueuedConnection);        connect(_qmlWindow, SIGNAL(windowClosed()), this, SLOT(hasClosed()), Qt::QueuedConnection);    };
开发者ID:AndrewMeadows,项目名称:hifi,代码行数:42,


示例3: windowClosed

//-------------------------------------------------------------------------------------OgreBase::~OgreBase(void){    //Remove ourself as a Window listener	Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);	windowClosed(mWindow);	delete mRoot;}
开发者ID:VagabondOfHell,项目名称:ProBending,代码行数:8,


示例4: qDebug

void EGS_PegsPage::init(){#ifdef PP_DEBUG  qDebug("In EGS_PegsPage::init()");#endif  config_reader = 0;  connect(new_data_file,SIGNAL(toggled(bool)),this,                        SLOT(newDataFileChecked(bool)));  connect(append_to_datafile,SIGNAL(toggled(bool)),this,                             SLOT(appendDataFileChecked(bool)));  connect(ofile_b,SIGNAL(clicked()),this,                  SLOT(setOfile()));  connect(go_button,SIGNAL(clicked()),this,SLOT(startPegs()));  connect(cancel_button,SIGNAL(clicked()),this,SLOT(stopPegs()));  new_data_file->setChecked(true); cancel_button->setEnabled(false);  pegs_process = new QProcess;  connect(pegs_process,SIGNAL(readyReadStandardOutput()),this,SLOT(readPegsStdout()));  connect(pegs_process,SIGNAL(readyReadStandardError()),this,SLOT(readPegsStderr()));  connect(pegs_process,SIGNAL(finished(int, QProcess::ExitStatus)),this,SLOT(pegsFinished()));  run_output = new PEGS_RunOutput(0);  connect(run_output,SIGNAL(windowClosed()),this, SLOT(outputClosed()));  initializeCompositionTable();}
开发者ID:Klunkerball,项目名称:EGSnrc,代码行数:29,


示例5: QWidget

toTextView::toTextView(QWidget *parent /* = 0*/, const char *name /* = 0*/)    : QWidget(parent)    , toEditWidget(){    if (name)        setObjectName(name);    toEditWidget::FlagSet.Save = true;    toEditWidget::FlagSet.Paste = true;    toEditWidget::FlagSet.SelectAll = true;    toEditWidget::FlagSet.SelectBlock = true;    m_view = new QTextBrowser(this);    m_view->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);    m_search = new toSearchReplace(this);    m_search->SearchMode->hide();    QVBoxLayout *l = new QVBoxLayout();    l->setSpacing(0);    l->setContentsMargins(0, 0, 0, 0);    l->addWidget(m_view);    l->addWidget(m_search);    setLayout(l);    connect(m_search, SIGNAL(searchNext(Search::SearchFlags)),            this, SLOT(handleSearching(Search::SearchFlags)));    connect(m_search, SIGNAL(windowClosed()),            this, SLOT(setEditorFocus()));}
开发者ID:dieface,项目名称:tora,代码行数:30,


示例6: qDebug

/*! /brief BPSK1000 decoder action triggered. * * This slot is called when the user activates the BPSK1000 * action. It will create an BPSK1000 decoder window and start * and start pushing data from the receiver to it. */void MainWindow::on_actionBPSK1000_triggered(){    if (dec_bpsk1000 != 0) {        qDebug() << "BPSK1000 decoder already active.";        dec_bpsk1000->raise();    }    else {        qDebug() << "Starting BPSK1000 decoder.";        /* start sample sniffer */        if (rx->start_sniffer(48000, DATA_BUFFER_SIZE) == receiver::STATUS_OK) {            dec_bpsk1000 = new Bpsk1000Win(this);            connect(dec_bpsk1000, SIGNAL(windowClosed()), this, SLOT(bpsk1000win_closed()));            dec_bpsk1000->show();            dec_timer->start(100);        }        else {            int ret = QMessageBox::warning(this, tr("Gqrx error"),                                           tr("Error starting sample sniffer./n"                                              "Close all data decoders and try again."),                                           QMessageBox::Ok, QMessageBox::Ok);        }    }}
开发者ID:mathisschmieder,项目名称:gqrx,代码行数:32,


示例7: windowClosed

//-------------------------------------------------------------------------------------WebUIApp::~WebUIApp(void){    //Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    OGRE_DELETE mRoot;    OGRE_DELETE mWebPanelFactory;}
开发者ID:vizcount,项目名称:work,代码行数:9,


示例8: windowClosed

//-------------------------------------------------------------------------------------BaseApplication::~BaseApplication(void){    if (mTrayMgr) delete mTrayMgr;    //Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow.get(), this);    windowClosed(mWindow.get());}
开发者ID:whztt07,项目名称:RampageRacing-Ogre,代码行数:9,


示例9: windowClosed

//-------------------------------------------------------------------------------------//Destructor clear window and mRootOGREBase::~OGREBase(void){	Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);	windowClosed(mWindow);	if (mTrayMgr) delete mTrayMgr;	if (mOverlaySystem) delete mOverlaySystem;	delete mRoot;}
开发者ID:sw-eng-2014,项目名称:general_solution,代码行数:10,


示例10: connect

bool TrayApplet::init(){	m_initialized = X11Support::makeSystemTray(m_panelWindow->winId());	if(!m_initialized)	{		// Another tray is active.		return false;	}	connect(X11Support::instance(), SIGNAL(windowClosed(ulong)), this, SLOT(windowClosed(ulong)));	connect(X11Support::instance(), SIGNAL(windowReconfigured(ulong,int,int,int,int)), this, SLOT(windowReconfigured(ulong,int,int,int,int)));	connect(X11Support::instance(), SIGNAL(windowDamaged(ulong)), this, SLOT(windowDamaged(ulong)));	connect(X11Support::instance(), SIGNAL(clientMessageReceived(ulong,ulong,void*)), this, SLOT(clientMessageReceived(ulong,ulong,void*)));	return true;}
开发者ID:pleaseproject,项目名称:qtpanel,代码行数:17,


示例11: CloseGame

Game::~Game(){	CloseGame();	//Remove ourself as a Window listener	Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);	windowClosed(mWindow);	delete mRoot;}
开发者ID:VagabondOfHell,项目名称:ProBending,代码行数:9,


示例12: windowClosed

//-------------------------------------------------------------------------------------UndeadLand::~UndeadLand(void){  if( mGorilla ) delete mGorilla;  if( mCameraMan ) delete mCameraMan;  Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);  windowClosed(mWindow);  delete mRoot;}
开发者ID:mrozbarry,项目名称:UndeadLand,代码行数:10,


示例13: windowClosed

application::~application(){    if (tray_mgr)  delete tray_mgr;    if (cameraman) delete cameraman;    Ogre::WindowEventUtilities::removeWindowEventListener (wnd, this);    windowClosed(wnd);    delete root;}
开发者ID:vcu-cmsc451-1,项目名称:Senior-Design-Project,代码行数:10,


示例14: AbstractChatRoom

ClientChatRoom::ClientChatRoom(ChatSocket* socket, quint32 id, QString name, quint32 userId, QList<UserInfo> userInfo) :    AbstractChatRoom(id, name), _socket(socket), _userId(userId), userInfo(userInfo){    window = new ChatRoomWindow();    connect(window,SIGNAL(textEntered(QString)),this,SLOT(sendMessage(QString)));    connect(window,SIGNAL(windowClosed()),this,SLOT(sendUserQuit()));    window->setUserList(userInfo);    window->setTitle(_name);    window->show();}
开发者ID:Xeemed,项目名称:TM2011C1.4,代码行数:10,


示例15: windowClosed

//-------------------------------------------------------------------------------------BaseApplication::~BaseApplication(void){    if (mTrayMgr) delete mTrayMgr;    if (mCameraMan) delete mCameraMan;    //Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    delete mRoot;}
开发者ID:jameszaghini,项目名称:ogre-kinect,代码行数:11,


示例16: QMainWindow

MainWindow::MainWindow(QWidget *parent) :    QMainWindow(parent),    ui(new Ui::MainWindow){    ui->setupUi(this);    image = new Image(this);    connect(image, SIGNAL(windowClosed()), qApp, SLOT(quit()));}
开发者ID:Sushant-Bedage,项目名称:Object-Tracking-Camera,代码行数:10,


示例17: windowClosed

SystemOgre::ControllerAbstract::~ControllerAbstract(void){	if (mTrayMgr) delete mTrayMgr;	if (mCameraMan) delete mCameraMan;	//Remove ourself as a Window listener	Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);	windowClosed(mWindow);	delete mRoot;}
开发者ID:jeanCarloMachado,项目名称:rpg,代码行数:10,


示例18: windowClosed

ServerGraphics::~ServerGraphics (void){    // Destroy camera manager.    if (mCameraMan)        delete mCameraMan;    //Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    delete mRoot;}
开发者ID:Arkamarante,项目名称:collision-domain,代码行数:11,


示例19: windowClosed

//---------------------------------------------------------------------------EBase::~EBase(void){    if (mTrayMgr) delete mTrayMgr;    if (mCameraMan) delete mCameraMan;    if (mOverlaySystem) delete mOverlaySystem;    // Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    delete mRoot;}
开发者ID:popoory67,项目名称:GameEngine,代码行数:12,


示例20: windowClosed

TutorialApplication::~TutorialApplication(){	mSceneMgr->destroyQuery(mRayScnQuery);	//Remove ourself as a Window listener	Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);	windowClosed(mWindow);	delete mRoot;}
开发者ID:Sisky,项目名称:Game-Programming-Assignment-3,代码行数:11,


示例21: windowClosed

GameFrameListener::~GameFrameListener(){    m_InputManager->destroyInputObject( m_Keyboard );    m_InputManager->destroyInputObject( m_Mouse );    OIS::InputManager::destroyInputSystem( m_InputManager );    //Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener( m_Window, this );    windowClosed( m_Window );}
开发者ID:DeejStar,项目名称:q-gears,代码行数:11,


示例22: qDebug

PopupWindow* PopupWindowsStack::newWindow(){	qDebug() << Q_FUNC_INFO << "{";	PopupWindow* p = new PopupWindow(newCoords());	connect(p, SIGNAL(closePopupWindow()), this, SLOT(windowClosed()));	connect(p, SIGNAL(mouseEntered()), this, SIGNAL(mouseEntered()));	connect(p, SIGNAL(mouseLeaved()), this, SIGNAL(mouseLeaved()));	existingWindows.append(p);	shownWindows.append(p);		qDebug() << Q_FUNC_INFO << "}";	return p;}
开发者ID:Andrsid,项目名称:myagent-im,代码行数:12,


示例23: windowClosed

Application::~Application(){  if (_window) {    Ogre::WindowEventUtilities::removeWindowEventListener(_window, this);    windowClosed(_window);  }  if (_root)    delete _root;  ::Logger::deleteInstance();  ::Algo::MD5::deleteInstance();  ::Network::Manager::Client::deleteInstance();}
开发者ID:Hexatyla,项目名称:Client,代码行数:12,


示例24: windowClosed

//-------------------------------------------------------------------------------------BaseApplication::~BaseApplication(void){    if (mTrayMgr) delete mTrayMgr;    if (mCameraMan) delete mCameraMan;    //Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    delete mRoot;#if (OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS) || (OGRE_PLATFORM == OGRE_PLATFORM_ANDROID)    m_StaticPluginLoader.unload();#endif}
开发者ID:DuncanSungWKim,项目名称:OgreAssistKit,代码行数:14,


示例25: windowClosed

//---------------------------------------------------------------------------BaseApplication::~BaseApplication(void){    if (mTrayMgr) delete mTrayMgr;    if (mCameraMan) delete mCameraMan;    if (mOverlaySystem) delete mOverlaySystem;	if (mARToolkit) delete mARToolkit;	if (mPhysx) delete mPhysx;    // Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    delete mRoot;}
开发者ID:aferrandoa,项目名称:MasterIARFID,代码行数:14,


示例26: connect

bool TrayApplet::init(QWidget* parent){  if(!(m_initialized = X11Core::makeSystemTray(winId())))    return false; // Another tray is active.  connect(X11Core::instance(), SIGNAL(clientMessageReceived(WId,Atom,void*)),          this               , SLOT(onClientMessageReceived(WId,Atom,void*)));  connect(X11Core::instance(), SIGNAL(windowClosed(WId)),          this               , SLOT(onWindowClosed(WId)));  return true;}
开发者ID:GravisZro,项目名称:qtpanel,代码行数:13,


示例27: destroyScene

/*!  Destructor.*/vpAROgre::~vpAROgre(void){  // Destroy 3D scene  destroyScene();  // Close OIS  closeOIS();  if ( mWindow) {    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);  }  // Delete root  if (mRoot) delete mRoot;}
开发者ID:tswang,项目名称:visp,代码行数:17,


示例28: qFatal

void QQnxScreenEventHandler::handleCloseEvent(screen_event_t event){    screen_window_t window = 0;    if (screen_get_event_property_pv(event, SCREEN_PROPERTY_WINDOW, (void**)&window) != 0)        qFatal("QQnx: failed to query window property, errno=%d", errno);    Q_EMIT windowClosed(window);    // Map window handle to top-level QWindow    QWindow *w = QQnxIntegration::window(window);    if (w != 0) {        QWindowSystemInterface::handleCloseEvent(w);    }}
开发者ID:crobertd,项目名称:qtbase,代码行数:14,


示例29: connect

void GStreamerFullScreenVideoHandler::enterFullScreen(){    if (m_videoElement->platformMedia().type != WebCore::PlatformMedia::GStreamerGWorldType)        return;    GStreamerGWorld* gstreamerGWorld = m_videoElement->platformMedia().media.gstreamerGWorld;    if (!gstreamerGWorld->enterFullscreen())        return;    m_fullScreenWidget = reinterpret_cast<FullScreenVideoWindow*>(gstreamerGWorld->platformVideoWindow()->window());    m_fullScreenWidget->setVideoElement(m_videoElement);    connect(m_fullScreenWidget, SIGNAL(closed()), this, SLOT(windowClosed()));    m_fullScreenWidget->showFullScreen();}
开发者ID:13W,项目名称:phantomjs,代码行数:15,


示例30: windowClosed

//---------------------------------------------------------------------------BaseApplication::~BaseApplication(void){    if (mTrayMgr) delete mTrayMgr;    if (mCameraMan) delete mCameraMan;    if (mOverlaySystem) delete mOverlaySystem;    delete player;    delete gameMap;    delete mStats;    delete mStopwatch;    // Remove ourself as a Window listener    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);    windowClosed(mWindow);    delete mRoot;}
开发者ID:chjk122,项目名称:finalGame,代码行数:16,



注:本文中的windowClosed函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ windowHandle函数代码示例
C++ winbindd_request_response函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。