void PvDualSourceSample::OnConnectionConnectAction() { // create a device finder wnd and open the select device dialog PvDeviceFinderWnd lWnd; lWnd.SetTitle( "GEV Device Selection" ); // Show device finder if ( ( !lWnd.ShowModal().IsOK() ) || ( lWnd.GetSelected() == NULL ) ) { return; } // Show hourglass QCursor lOldCursor = cursor(); setCursor( Qt::WaitCursor ); QCoreApplication::processEvents(); // Connect to device Connect( lWnd.GetSelected() ); // Restore cursor setCursor( lOldCursor ); }