QWebEngineView crash when I try to resize it
-
Hello, I try this
view->setGeometry(0, 0, ui->label->size().width(), ui->label->size().height());
and this
view->resize(ui->label->size().width(), this->size().height());
and when I just resize it then my program crash with log in console "Forced shutdown program". What I have to do now?
-
@NintyS said in QWebEngineView crash wen I try to resize it:
What I have to do now?
You should use the debugger and check the stack trace after crash.
Also check the pointers (like "view") - are those valid? -
@NintyS said in QWebEngineView crash wen I try to resize it:
Tell me what I supposed to check.
As I said: run through debugger and as soon as your app crashes check the stack trace (you can post it here, so others can take a look). Also, you can place break point at exactly that line, run through debugger and as soon as it stops at that line check the pointers (you did not answer my questions about the validity of the pointers).
-
@NintyS said in QWebEngineView crash wen I try to resize it:
view->resize(ui->label->size().width(), this->size().height());
Debugger point ta o pointers. ( But I saw another funny thing I have two QWebEngineView one in .H another in .cpp and both named view ). When I reset one from .cpp then works.