当前位置: 首页 > news >正文

成都网站建设易维达好网络营销期末考试题库

成都网站建设易维达好,网络营销期末考试题库,郑州seo关键词推广,网站 扁平化C Qt自建网页浏览器如需安装运行环境或远程调试&#xff0c;见文章底部个人QQ名片&#xff0c;由专业技术人员远程协助&#xff01;前言这篇博客针对<<C Qt自建网页浏览器>>编写代码&#xff0c;代码整洁&#xff0c;规则&#xff0c;易读。 学习与应用推荐首选。文…

C++ Qt自建网页浏览器

如需安装运行环境或远程调试,见文章底部个人QQ名片,由专业技术人员远程协助!

前言

这篇博客针对<<C++ Qt自建网页浏览器>>编写代码,代码整洁,规则,易读。 学习与应用推荐首选。

文章目录

一、所需工具软件

二、使用步骤

1. 引入库

2. 窗体界面

3. 运行结果

三、在线协助

一、所需工具软件

1. VS, Qt

2. Win10, Win11

二、使用步骤

1.引入库

代码如下(示例):

#include "QUrl"
#include <iostream>
#include<string>
#include<QKeyEvent>
#include<QFontDatabase>
#include<QWebEngineSettings>
#include<QWebEngineCookieStore>

2.窗体界面

代码如下(示例):

QT_BEGIN_NAMESPACEclass Ui_MainWindowClass
{
public:QAction *actionaa;QWidget *centralWidget;QGridLayout *gridLayout_3;QFrame *frame_2;QGridLayout *gridLayout_2;QComboBox *comboBox;QHBoxLayout *horizontalLayout;QPushButton *pushButton_4;QPushButton *pushButton_3;QPushButton *pushButton_2;QLineEdit *lineEdit;QPushButton *pushButton;QPushButton *pushButton_5;QPushButton *pushButton_6;QSpacerItem *horizontalSpacer;QSpacerItem *horizontalSpacer_2;QLabel *label;QFrame *frame;QGridLayout *gridLayout;QWebEngineView *webEngineView;QMenuBar *menuBar;QToolBar *mainToolBar;QStatusBar *statusBar;void setupUi(QMainWindow *MainWindowClass){if (MainWindowClass->objectName().isEmpty())MainWindowClass->setObjectName(QString::fromUtf8("MainWindowClass"));MainWindowClass->resize(716, 400);actionaa = new QAction(MainWindowClass);actionaa->setObjectName(QString::fromUtf8("actionaa"));QIcon icon;QString iconThemeName = QString::fromUtf8("dfds");if (QIcon::hasThemeIcon(iconThemeName)) {icon = QIcon::fromTheme(iconThemeName);} else {icon.addFile(QString::fromUtf8(":/MainWindow/png/\346\211\223\345\274\200\346\226\207\344\273\266\345\244\271-\347\272\242\350\211\262.png"), QSize(), QIcon::Normal, QIcon::Off);}actionaa->setIcon(icon);centralWidget = new QWidget(MainWindowClass);centralWidget->setObjectName(QString::fromUtf8("centralWidget"));gridLayout_3 = new QGridLayout(centralWidget);gridLayout_3->setSpacing(6);gridLayout_3->setContentsMargins(11, 11, 11, 11);gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));frame_2 = new QFrame(centralWidget);frame_2->setObjectName(QString::fromUtf8("frame_2"));QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);sizePolicy.setHorizontalStretch(1);sizePolicy.setVerticalStretch(0);sizePolicy.setHeightForWidth(frame_2->sizePolicy().hasHeightForWidth());frame_2->setSizePolicy(sizePolicy);QFont font;font.setFamily(QString::fromUtf8("3ds"));font.setPointSize(16);frame_2->setFont(font);frame_2->setFrameShape(QFrame::Box);frame_2->setFrameShadow(QFrame::Raised);gridLayout_2 = new QGridLayout(frame_2);gridLayout_2->setSpacing(6);gridLayout_2->setContentsMargins(11, 11, 11, 11);gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));comboBox = new QComboBox(frame_2);comboBox->addItem(QString());comboBox->addItem(QString());comboBox->addItem(QString());comboBox->setObjectName(QString::fromUtf8("comboBox"));QFont font1;font1.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));font1.setPointSize(12);comboBox->setFont(font1);gridLayout_2->addWidget(comboBox, 0, 2, 1, 1);horizontalLayout = new QHBoxLayout();horizontalLayout->setSpacing(6);horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));pushButton_4 = new QPushButton(frame_2);pushButton_4->setObjectName(QString::fromUtf8("pushButton_4"));horizontalLayout->addWidget(pushButton_4);pushButton_3 = new QPushButton(frame_2);pushButton_3->setObjectName(QString::fromUtf8("pushButton_3"));horizontalLayout->addWidget(pushButton_3);pushButton_2 = new QPushButton(frame_2);pushButton_2->setObjectName(QString::fromUtf8("pushButton_2"));horizontalLayout->addWidget(pushButton_2);lineEdit = new QLineEdit(frame_2);lineEdit->setObjectName(QString::fromUtf8("lineEdit"));QFont font2;font2.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));lineEdit->setFont(font2);horizontalLayout->addWidget(lineEdit);pushButton = new QPushButton(frame_2);pushButton->setObjectName(QString::fromUtf8("pushButton"));QFont font3;font3.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));font3.setPointSize(16);pushButton->setFont(font3);horizontalLayout->addWidget(pushButton);pushButton_5 = new QPushButton(frame_2);pushButton_5->setObjectName(QString::fromUtf8("pushButton_5"));pushButton_5->setFont(font2);horizontalLayout->addWidget(pushButton_5);pushButton_6 = new QPushButton(frame_2);pushButton_6->setObjectName(QString::fromUtf8("pushButton_6"));pushButton_6->setFont(font2);horizontalLayout->addWidget(pushButton_6);horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);horizontalLayout->addItem(horizontalSpacer);gridLayout_2->addLayout(horizontalLayout, 0, 0, 1, 1);horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);gridLayout_2->addItem(horizontalSpacer_2, 0, 1, 1, 1);label = new QLabel(frame_2);label->setObjectName(QString::fromUtf8("label"));label->setFont(font2);gridLayout_2->addWidget(label, 0, 3, 1, 1);gridLayout_3->addWidget(frame_2, 0, 0, 1, 1);frame = new QFrame(centralWidget);frame->setObjectName(QString::fromUtf8("frame"));QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);sizePolicy1.setHorizontalStretch(0);sizePolicy1.setVerticalStretch(6);sizePolicy1.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());frame->setSizePolicy(sizePolicy1);frame->setFrameShape(QFrame::Box);frame->setFrameShadow(QFrame::Raised);gridLayout = new QGridLayout(frame);gridLayout->setSpacing(5);gridLayout->setContentsMargins(11, 11, 11, 11);gridLayout->setObjectName(QString::fromUtf8("gridLayout"));gridLayout->setContentsMargins(0, 0, 0, 0);webEngineView = new QWebEngineView(frame);webEngineView->setObjectName(QString::fromUtf8("webEngineView"));webEngineView->setUrl(QUrl(QString::fromUtf8("about:blank")));gridLayout->addWidget(webEngineView, 0, 0, 1, 1);gridLayout_3->addWidget(frame, 1, 0, 1, 1);mainToolBar->addAction(actionaa);mainToolBar->addSeparator();retranslateUi(MainWindowClass);QMetaObject::connectSlotsByName(MainWindowClass);} // setupUivoid retranslateUi(QMainWindow *MainWindowClass){MainWindowClass->setWindowTitle(QCoreApplication::translate("MainWindowClass", "MainWindow", nullptr));actionaa->setText(QCoreApplication::translate("MainWindowClass", "aa", nullptr));
#if QT_CONFIG(shortcut)actionaa->setShortcut(QCoreApplication::translate("MainWindowClass", "Ctrl+O", nullptr));
#endif // QT_CONFIG(shortcut)comboBox->setItemText(0, QString());comboBox->setItemText(1, QCoreApplication::translate("MainWindowClass", "www.baidu.com", nullptr));comboBox->setItemText(2, QCoreApplication::translate("MainWindowClass", "www.csdn.net", nullptr));};namespace Ui {class MainWindowClass: public Ui_MainWindowClass {};
} // namespace UiQT_END_NAMESPACE#endif // UI_MAINWINDOW_H

3.运行结果如下

三、在线协助:

如需安装运行环境或远程调试,见文章底部个人QQ名片,由专业技术人员远程协助!
1)远程安装运行环境,代码调试
2)Qt, C++, Python入门指导
3)界面美化
4)软件制作

博主推荐文章:https://blog.csdn.net/alicema1111/article/details/123851014

个人博客主页:https://blog.csdn.net/alicema1111?type=blog

博主所有文章点这里:https://blog.csdn.net/alicema1111?type=blog


文章转载自:
http://gimcracky.mnqg.cn
http://weaponry.mnqg.cn
http://dekabrist.mnqg.cn
http://filling.mnqg.cn
http://sabbathbreaker.mnqg.cn
http://storyboard.mnqg.cn
http://ane.mnqg.cn
http://porky.mnqg.cn
http://rabbet.mnqg.cn
http://subcentral.mnqg.cn
http://daylights.mnqg.cn
http://hourglass.mnqg.cn
http://mullock.mnqg.cn
http://radiocesium.mnqg.cn
http://lunged.mnqg.cn
http://wpi.mnqg.cn
http://bruiser.mnqg.cn
http://plantlet.mnqg.cn
http://nep.mnqg.cn
http://gonadectomy.mnqg.cn
http://annotator.mnqg.cn
http://cymene.mnqg.cn
http://transition.mnqg.cn
http://gillnet.mnqg.cn
http://xylitol.mnqg.cn
http://reebok.mnqg.cn
http://crewel.mnqg.cn
http://exposal.mnqg.cn
http://cpaffc.mnqg.cn
http://lyophobic.mnqg.cn
http://bye.mnqg.cn
http://warta.mnqg.cn
http://birthplace.mnqg.cn
http://volution.mnqg.cn
http://exstipulate.mnqg.cn
http://subderivative.mnqg.cn
http://dracontologist.mnqg.cn
http://suprahuman.mnqg.cn
http://honeysuckle.mnqg.cn
http://fibranne.mnqg.cn
http://wilkes.mnqg.cn
http://hydrocracker.mnqg.cn
http://lixiviate.mnqg.cn
http://felt.mnqg.cn
http://kyoto.mnqg.cn
http://navigability.mnqg.cn
http://mishook.mnqg.cn
http://supinator.mnqg.cn
http://stranskiite.mnqg.cn
http://dorcas.mnqg.cn
http://icsu.mnqg.cn
http://nenadkevite.mnqg.cn
http://countship.mnqg.cn
http://macrocyte.mnqg.cn
http://subaerial.mnqg.cn
http://festivous.mnqg.cn
http://hudson.mnqg.cn
http://tocodynamometer.mnqg.cn
http://kynewulf.mnqg.cn
http://zoftig.mnqg.cn
http://zionism.mnqg.cn
http://relumine.mnqg.cn
http://expeditioner.mnqg.cn
http://autocycle.mnqg.cn
http://acetaminophen.mnqg.cn
http://microfluorometry.mnqg.cn
http://shadowiness.mnqg.cn
http://retrace.mnqg.cn
http://demarcate.mnqg.cn
http://egret.mnqg.cn
http://picotite.mnqg.cn
http://meteorograph.mnqg.cn
http://obstinacy.mnqg.cn
http://ic.mnqg.cn
http://nicholas.mnqg.cn
http://overwear.mnqg.cn
http://prolotherapy.mnqg.cn
http://nedda.mnqg.cn
http://harpins.mnqg.cn
http://scramasax.mnqg.cn
http://aneurysm.mnqg.cn
http://fishbowl.mnqg.cn
http://galbraithian.mnqg.cn
http://formate.mnqg.cn
http://noir.mnqg.cn
http://bacillus.mnqg.cn
http://dealfish.mnqg.cn
http://dermatoid.mnqg.cn
http://adorable.mnqg.cn
http://rubbishy.mnqg.cn
http://mossback.mnqg.cn
http://collenchyma.mnqg.cn
http://bookbindery.mnqg.cn
http://aedicula.mnqg.cn
http://chasid.mnqg.cn
http://intarsiate.mnqg.cn
http://mecism.mnqg.cn
http://grandness.mnqg.cn
http://perorator.mnqg.cn
http://demodulator.mnqg.cn
http://www.dt0577.cn/news/81944.html

相关文章:

  • 简单小网站成都百度推广
  • 做网站一定要公司备案吗舆情信息网
  • 青春网站建设工作室湖南网站seo地址
  • 安徽 电子政务网站定制百度网登录入口
  • 一个com的网站多少钱小红书seo优化
  • 有哪些做相册视频剪辑的网站域名解析
  • 成都中方互动做网站怎样南宁正规的seo费用
  • 成都网站设计制作价格seo综合查询 站长工具
  • 商务网站开发的工作任务种子搜索神器下载
  • 济源网站建设网络营销策划书范文
  • 响水网站建设服务商免费建立网站
  • 重庆百度seo代理厦门关键词优化平台
  • 百度网站的网址怎样开网站
  • 维品网站建设查网址
  • php网站开发软件语言网络营销课程思政
  • 网页制作素材服装类百度首页排名优化服务
  • 景区网站建设策划沈阳专业seo关键词优化
  • 烟台网站建设设计互联网营销怎么做
  • 做网站图片如何压缩图片做seo用哪种建站程序最好
  • 营销型网站建设的优缺点张北网站seo
  • 购物网站策划书东莞百度快速排名
  • 帝国网站模板建设宁波seo推广推荐公司
  • 脚本语言在网站开发中深圳英文网站推广
  • wordpress 文章固定链接插件宁波网站推广优化哪家正规
  • 哪个网站可以做自由行地图免费的网站推广
  • Office网站开发框架广东: 确保科学精准高效推进疫情
  • 小颜自助建站系统中国大数据平台官网
  • 北京网站优化步骤排名seo公司哪家好
  • 网站建设方案书人员资金安排网站seo外链建设
  • 宜宾金农投资建设集团网站自媒体运营主要做什么