Results 1 to 1 of 1

Thread: When QDockWidget with QWebEngineView is undocked, other docked widgets don't respond

  1. #1
    Join Date
    Dec 2017
    Qt products
    Unix/X11 Windows

    Default When QDockWidget with QWebEngineView is undocked, other docked widgets don't respond

    I have multiple dockwidgets in my main window and everything works fine until I add a dockedwidget with QwebEngineView as the widget.

    When a dockwidget with QwebEngineView as a child is undocked, user inputs such as scroll bars in the other docked widgets are ignored. When the dockwidget with QWebEngineView is docked, it works fine.

    The code I am testing with is the example project in ..\Qt 5.6\widgets\mainwindows\dockwidgets with minor modification to add one more dockedwidget with QWebEngineView (see below).

    ///// added this in void MainWindow::createDockWindows()

    WebView* w_view = new WebView(nullptr);
    dock = new QDockWidget(tr("WebView"), this);
    dock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
    addDockWidget(Qt::LeftDockWidgetArea, dock);

    /// the widget with QWebEngineView
    class WebView : public QWidget {
    WebView(QWidget* parent = 0)
    m_webEngineView = new QWebEngineView(this);

    ~WebView() {}
    QWebEngineView* m_webEngineView;

    PS: This works fine when using Qt 5.5, issue appears on versions >= 5.6 .
    Last edited by sammyy; 20th December 2017 at 17:05.

Similar Threads

  1. Replies: 0
    Last Post: 6th September 2015, 08:43
  2. how to hide the title bar when a QDockWidget is docked?
    By oscar721 in forum Qt Programming
    Replies: 5
    Last Post: 23rd January 2014, 20:16
  3. resize a docked QDockWidget programmatically
    By ArkKup in forum Qt Programming
    Replies: 4
    Last Post: 10th August 2012, 07:43
  4. Detect QToolBar docked/undocked
    By desch in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2008, 11:16
  5. Replies: 8
    Last Post: 4th February 2007, 00:42

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.