Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

src_gui_widgets_qdockwidget.cpp

//! [0]
QDockWidget *dockWidget = qobject_cast<QDockWidget*>(parentWidget());
if (dockWidget->features() & QDockWidget::DockWidgetVerticalTitleBar) {
    // I need to be vertical
} else {
    // I need to be horizontal
}
//! [0]

Generated by  Doxygen 1.6.0   Back to index