Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. In a Qt Quick Application project, how do I use the "QWebEnginePage::createWindow(QWebEnginePage::WebBrowserWindow)" method to create the full window of a web browser?
QtWS25 Last Chance

In a Qt Quick Application project, how do I use the "QWebEnginePage::createWindow(QWebEnginePage::WebBrowserWindow)" method to create the full window of a web browser?

Scheduled Pinned Locked Moved Unsolved Qt 6
qt c++qwebenginepageqapplicationqml
1 Posts 1 Posters 332 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gouneken
    wrote on last edited by JKSH
    #1

    [Thread locked. Duplicate of https://forum.qt.io/topic/135318/ --JKSH]

    Good evening to the whole community, I have been working for some time on a search engine project, for ios and Android. For this I created on Qt Creator a Qt Quick Application project, because of the ease of creating graphical interfaces for mobile in the QML language. And for my project, I also used c++ modules of Qt. So I was entitled to a file 'main.cpp' which called a file 'main.qml' for the generation of the window.
    However, the problem is only to create the graphical interface of the software; I used the protected method QWebEnginePage::createWindow(QWebEnginePage::WebBrowserWindow) in one of my class files; but when I compile, I get the basic GUI of main.qml and an error message:
    ee6e428e-5d60-4b80-89f8-22e72c57494b-image.png

    However, I did implement "QApplication" in my project and no errors were generated. Here are some screenshots of my class files
    281dbae4-4754-4ccb-840e-21a9734bdaa5-image.png
    ad34c3fe-d92f-412a-a18c-f13aae28f7d4-image.png
    from my main.cpp file
    3225f82f-aa06-4026-a7c4-f07dc74eaea5-image.png
    and my main.qml file.
    48273579-e22a-41ae-b3ca-984f59adea15-image.png
    I look forward to your answers, thank you!

    raven-worxR 1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved