Results 1 to 4 of 4

Thread: Prevent docking on doubleclick

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Prevent docking on doubleclick

    Hello,
    Could somebody tell me how I can prevent docking action on mouse doubleclick on title bar. I create my dockable widget as follow:

    Qt Code:
    1. QDockWidget* d = new QDockWidget(tr("myDockWidget"), this);
    2. d->setAllowedAreas(Qt::NoDockWidgetArea);
    3. d->setFeatures ( QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetClosable );
    4. myView = new SplitCombineFiles( d );
    5. d->setWidget(myView );
    6. d->setFloating ( true );
    To copy to clipboard, switch view to plain text mode 
    i would think that i set all flags possible to prevent docking, but no, it still docks on double click.
    Thanks in advance.
    Last edited by marcel; 24th June 2008 at 19:57. Reason: missing [code] tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.