![]() The BrowserWindow constructor initializes all the necessary user interface related objects. QWebEngineSettings ::defaultSettings() - >setAttribute( QWebEngineSettings ::PluginsEnabled, true) īrowserWindow *window = new BrowserWindow() Ĭonst QString url = getCommandLineUrlArgument() ![]() setWindowIcon( QIcon(QLatin1String( ":simplebrowser.svg"))) QCoreApplication ::setAttribute( Qt ::AA_EnableHighDpiScaling) Īpp. If no arguments are passed on the command line, we open the Qt Homepage: int main( int argc, char * *argv) In main.cpp, we create the first BrowserWindow instance and add it to the Browser object. This class could also be used for further functionality, such as downloading files, bookmarks, and history managers. This example supports multiple main windows that are owned by a Browser singleton object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |