Hi all,
). I set a label to it, and i set it as a backgroundlabel.Qt Code:
I have a QListWidget (an object that inherits from QListWidget actually, [CODE]TA5WorkflowBuilderAppListWidgetTo copy to clipboard, switch view to plain text mode
m_wfBuilderUI->Datasets = new TA5WorkflowBuilderAppListWidget;
m_wfBuilderUI->Datasets->setAcceptDrops( true );
m_wfBuilderUI->Datasets->setStyleSheet( QL1s( "background-color:#f0f0f0" ) );
m_wfBuilderUI->Datasets->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Expanding );
m_wfBuilderUI->bgLabelInputs = new QLabel( QL1s( "<b>Please drop your datasets here</b>" ), m_wfBuilderUI->Datasets );
m_wfBuilderUI->bgLabelInputs->setProperty("BackgroundLabel", true);
m_wfBuilderUI->bgLabelInputs->setStyleSheet( QL1s( "margin:2px; font-size:17px; color:#808080 " ) );
m_wfBuilderUI->bgLabelInputs->setScaledContents(true);
m_wfBuilderUI->bgLabelInputs->setWordWrap(true);
m_wfBuilderUI->firstPageContentLayout->insertWidget( 0, m_wfBuilderUI->Datasets );[/CODE]
However, on D&D, labels stays in front, whereas droped item is behind. Do you see from code why it is so ? How can I handle that ?
Thanks
Bookmarks