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
    Posts
    1
    Qt products
    Qt5
    Platforms
    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);
    dock->setWidget(w_view);
    addDockWidget(Qt::LeftDockWidgetArea, dock);


    /// the widget with QWebEngineView
    class WebView : public QWidget {
    Q_OBJECT
    public:
    WebView(QWidget* parent = 0)
    :QWidget(parent)
    {
    setObjectName("WebView");
    m_webEngineView = new QWebEngineView(this);
    m_webEngineView->load(QUrl("http://qt-project.org/"));
    }

    ~WebView() {}
    private:
    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 18:05.

Similar Threads

  1. Replies: 0
    Last Post: 6th September 2015, 09: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, 21:16
  3. resize a docked QDockWidget programmatically
    By ArkKup in forum Qt Programming
    Replies: 4
    Last Post: 10th August 2012, 08:43
  4. Detect QToolBar docked/undocked
    By desch in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2008, 12:16
  5. Replies: 8
    Last Post: 4th February 2007, 01:42

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.