No effects :
if( m_DragActorArray.Empty() )
{
event->ignore();
event->setDropAction( Qt::IgnoreAction );
return;
}
if( m_DragActorArray.Empty() )
{
event->ignore();
event->setDropAction( Qt::IgnoreAction );
return;
}
To copy to clipboard, switch view to plain text mode
The code from the QListView where the drag start :
virtual void startDrag( Qt::DropActions supportedActions )
{
Drag->setMimeData( model()->mimeData( selectedIndexes() ) );
Drag->exec( supportedActions );
}
virtual void startDrag( Qt::DropActions supportedActions )
{
QDrag* Drag = new QDrag( this );
Drag->setMimeData( model()->mimeData( selectedIndexes() ) );
Drag->exec( supportedActions );
}
To copy to clipboard, switch view to plain text mode
The forbidden cursor is showed for all other widget but once it enters the widget this topic is about, the cursor never shows forbidden forever.
The widget uses a QTimer to update from a 3D Engine :
connect( &m_Timer, SIGNAL( timeout() ), this, SLOT( UpdateOneFrame() ) );
connect( &m_Timer, SIGNAL( timeout() ), this, SLOT( UpdateOneFrame() ) );
To copy to clipboard, switch view to plain text mode
void IRenderWidget::UpdateOneFrame()
{
if( m_Initialized )
{
DE::CEngine::GetRenderer().SetRenderWindow( m_RenderWindow );
OnUpdate();
DE::CEngine::GetRenderer().EndOfRendering();
m_RenderWindow->EndFrame();
m_RenderWindow->StartFrame();
}
}
void IRenderWidget::UpdateOneFrame()
{
if( m_Initialized )
{
DE::CEngine::GetRenderer().SetRenderWindow( m_RenderWindow );
OnUpdate();
DE::CEngine::GetRenderer().EndOfRendering();
m_RenderWindow->EndFrame();
m_RenderWindow->StartFrame();
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks