QWebEngineView display position
I used QWebEngineView
to call html, and now I've shown success. however QWebEngineView
is shown in the upper left corner, I want to show QWebEngineView
in the white area below. First, I don't know how to do this step.Second, I don't know what kind of Qt should be used in the white area shown.Or you can provide me with a good tutorial to solve my current problem.
This is my interface:
The bar chart is the HTML file I want to display
This is the part of my code:
pEngView = new QWebEngineView(this);
pEngView->setContextMenuPolicy(Qt::NoContextMenu);
pEngView->load(QUrl("file:///html/barx.html"));
pEngView->show();
qt
add a comment |
I used QWebEngineView
to call html, and now I've shown success. however QWebEngineView
is shown in the upper left corner, I want to show QWebEngineView
in the white area below. First, I don't know how to do this step.Second, I don't know what kind of Qt should be used in the white area shown.Or you can provide me with a good tutorial to solve my current problem.
This is my interface:
The bar chart is the HTML file I want to display
This is the part of my code:
pEngView = new QWebEngineView(this);
pEngView->setContextMenuPolicy(Qt::NoContextMenu);
pEngView->load(QUrl("file:///html/barx.html"));
pEngView->show();
qt
1
please provide a Minimal, Complete, and Verifiable example
– eyllanesc
Nov 13 '18 at 3:03
add a comment |
I used QWebEngineView
to call html, and now I've shown success. however QWebEngineView
is shown in the upper left corner, I want to show QWebEngineView
in the white area below. First, I don't know how to do this step.Second, I don't know what kind of Qt should be used in the white area shown.Or you can provide me with a good tutorial to solve my current problem.
This is my interface:
The bar chart is the HTML file I want to display
This is the part of my code:
pEngView = new QWebEngineView(this);
pEngView->setContextMenuPolicy(Qt::NoContextMenu);
pEngView->load(QUrl("file:///html/barx.html"));
pEngView->show();
qt
I used QWebEngineView
to call html, and now I've shown success. however QWebEngineView
is shown in the upper left corner, I want to show QWebEngineView
in the white area below. First, I don't know how to do this step.Second, I don't know what kind of Qt should be used in the white area shown.Or you can provide me with a good tutorial to solve my current problem.
This is my interface:
The bar chart is the HTML file I want to display
This is the part of my code:
pEngView = new QWebEngineView(this);
pEngView->setContextMenuPolicy(Qt::NoContextMenu);
pEngView->load(QUrl("file:///html/barx.html"));
pEngView->show();
qt
qt
edited Nov 14 '18 at 5:32
AAEM
726318
726318
asked Nov 13 '18 at 2:58
ApluesAplues
31
31
1
please provide a Minimal, Complete, and Verifiable example
– eyllanesc
Nov 13 '18 at 3:03
add a comment |
1
please provide a Minimal, Complete, and Verifiable example
– eyllanesc
Nov 13 '18 at 3:03
1
1
please provide a Minimal, Complete, and Verifiable example
– eyllanesc
Nov 13 '18 at 3:03
please provide a Minimal, Complete, and Verifiable example
– eyllanesc
Nov 13 '18 at 3:03
add a comment |
1 Answer
1
active
oldest
votes
Use Qt Designer and place a QWidget
at the area you wanted. Then promote the QWidget
to QWebEngineView
and use the ui
pointer to get pointer of the webengine widget. If you are new to Qt/QtDesigner follow the tutorials.
- http://doc.qt.io/qt-5/designer-layouts.html
- http://doc.qt.io/qt-5/designer-using-custom-widgets.html
Thank you very much,I will read these tutorials carefully
– Aplues
Nov 13 '18 at 7:43
@Aplues you're welcome :)
– Gurushant
Nov 14 '18 at 4:22
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273143%2fqwebengineview-display-position%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use Qt Designer and place a QWidget
at the area you wanted. Then promote the QWidget
to QWebEngineView
and use the ui
pointer to get pointer of the webengine widget. If you are new to Qt/QtDesigner follow the tutorials.
- http://doc.qt.io/qt-5/designer-layouts.html
- http://doc.qt.io/qt-5/designer-using-custom-widgets.html
Thank you very much,I will read these tutorials carefully
– Aplues
Nov 13 '18 at 7:43
@Aplues you're welcome :)
– Gurushant
Nov 14 '18 at 4:22
add a comment |
Use Qt Designer and place a QWidget
at the area you wanted. Then promote the QWidget
to QWebEngineView
and use the ui
pointer to get pointer of the webengine widget. If you are new to Qt/QtDesigner follow the tutorials.
- http://doc.qt.io/qt-5/designer-layouts.html
- http://doc.qt.io/qt-5/designer-using-custom-widgets.html
Thank you very much,I will read these tutorials carefully
– Aplues
Nov 13 '18 at 7:43
@Aplues you're welcome :)
– Gurushant
Nov 14 '18 at 4:22
add a comment |
Use Qt Designer and place a QWidget
at the area you wanted. Then promote the QWidget
to QWebEngineView
and use the ui
pointer to get pointer of the webengine widget. If you are new to Qt/QtDesigner follow the tutorials.
- http://doc.qt.io/qt-5/designer-layouts.html
- http://doc.qt.io/qt-5/designer-using-custom-widgets.html
Use Qt Designer and place a QWidget
at the area you wanted. Then promote the QWidget
to QWebEngineView
and use the ui
pointer to get pointer of the webengine widget. If you are new to Qt/QtDesigner follow the tutorials.
- http://doc.qt.io/qt-5/designer-layouts.html
- http://doc.qt.io/qt-5/designer-using-custom-widgets.html
edited Nov 13 '18 at 3:36
eyllanesc
75k103156
75k103156
answered Nov 13 '18 at 3:29
GurushantGurushant
641215
641215
Thank you very much,I will read these tutorials carefully
– Aplues
Nov 13 '18 at 7:43
@Aplues you're welcome :)
– Gurushant
Nov 14 '18 at 4:22
add a comment |
Thank you very much,I will read these tutorials carefully
– Aplues
Nov 13 '18 at 7:43
@Aplues you're welcome :)
– Gurushant
Nov 14 '18 at 4:22
Thank you very much,I will read these tutorials carefully
– Aplues
Nov 13 '18 at 7:43
Thank you very much,I will read these tutorials carefully
– Aplues
Nov 13 '18 at 7:43
@Aplues you're welcome :)
– Gurushant
Nov 14 '18 at 4:22
@Aplues you're welcome :)
– Gurushant
Nov 14 '18 at 4:22
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273143%2fqwebengineview-display-position%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
please provide a Minimal, Complete, and Verifiable example
– eyllanesc
Nov 13 '18 at 3:03