<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[youngauthor的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/youngauthor</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; youngauthor]]></copyright><item><title><![CDATA[Python pip 安装与使用]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/126805452</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/126805452</guid><author>youngauthor</author><pubDate>Sun, 11 Sep 2022 15:06:32 +0800</pubDate><description><![CDATA[curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py   # 下载安装脚本。$ sudo python3 get-pip.py    # 运行安装脚本。$ sudo python get-pip.py    # 运行安装脚本。pip --version     # Python2.x 版本命令。pip3 --version    # Python3.x 版本命令。]]></description><category></category></item><item><title><![CDATA[Centos 8升级到 Centos Stream]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/126805423</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/126805423</guid><author>youngauthor</author><pubDate>Sun, 11 Sep 2022 15:03:42 +0800</pubDate><description><![CDATA[转载自： https://blog.youkuaiyun.com/ldy/article/details/121454918。]]></description><category></category></item><item><title><![CDATA[Qt安卓开发环境搭建]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/126434823</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/126434823</guid><author>youngauthor</author><pubDate>Sat, 20 Aug 2022 04:19:49 +0800</pubDate><description><![CDATA[Qt安卓开发环境搭建]]></description><category></category></item><item><title><![CDATA[Qt元类型]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/121069733</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/121069733</guid><author>youngauthor</author><pubDate>Sun, 31 Oct 2021 20:54:47 +0800</pubDate><description><![CDATA[摘自：https://segmentfault.com/a/1190000006870047
#include 
1.Q_DECLARE_METATYPE
使用Q_DECLARE_METATYPE标记自定义类型，可以让QMetaType查询到类型，也可以让QVariant识别。
#include 
struct MyStruct {
QString name;
QString color;
};
Q_DECLARE_METATYPE(MyStruct)
MyStruct myStruct;
QVariant]]></description><category></category></item><item><title><![CDATA[Qt常用宏的使用]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/121069488</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/121069488</guid><author>youngauthor</author><pubDate>Sun, 31 Oct 2021 20:45:22 +0800</pubDate><description><![CDATA[Q_DECLARE_INTERFACE
此宏用于把标识符与类名接口关联起来。这个标识符是唯一的，举个栗子：
#define BrushInterface_iid “org.qt-project.Qt.Examples.PlugAndPaint.BrushInterface”
Q_DECLARE_INTERFACE(BrushInterface, BrushInterface_iid)

2.Q_PLUGIN_METADATA
这个宏被用于声明元数据，这个元数据是被实例化插件的一部分。
这个宏需要通过对象声.]]></description><category></category></item><item><title><![CDATA[qt---QString]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120748991</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120748991</guid><author>youngauthor</author><pubDate>Wed, 13 Oct 2021 17:45:29 +0800</pubDate><description><![CDATA[QString +“”；问题。会出现数据缺失等等。

]]></description><category></category></item><item><title><![CDATA[QT网络通讯]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120734945</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120734945</guid><author>youngauthor</author><pubDate>Wed, 13 Oct 2021 00:05:21 +0800</pubDate><description><![CDATA[Qt中提供的所有的Socket类都是非阻塞的。
QTcpServer
用于TCP/IP通信, 作为服务器端套接字使用
QTcpSocket
用于TCP/IP通信，作为客户端套接字使用。
QUdpSocket
用于UDP通信，服务器，客户端均使用此套接字。

...]]></description><category></category></item><item><title><![CDATA[字符串切割]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120633423</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120633423</guid><author>youngauthor</author><pubDate>Thu, 07 Oct 2021 10:34:20 +0800</pubDate><description><![CDATA[split 按照指定的字符分割,如按照";"或 "/"等分割

QString str = “hello,world”
QStringList list = str.split(",");

]]></description><category></category></item><item><title><![CDATA[QT委托的bug]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120629313</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120629313</guid><author>youngauthor</author><pubDate>Wed, 06 Oct 2021 20:41:39 +0800</pubDate><description><![CDATA[1.QT 委托的使用要用new，要用指针。

]]></description><category></category></item><item><title><![CDATA[中文乱码问题]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120570441</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120570441</guid><author>youngauthor</author><pubDate>Thu, 30 Sep 2021 17:39:47 +0800</pubDate><description><![CDATA[1.QObject::tr("");
2.QStringLiteral("");
3.QString::fromLocal8Bit

]]></description><category></category></item><item><title><![CDATA[QT调用网页]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120569843</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120569843</guid><author>youngauthor</author><pubDate>Thu, 30 Sep 2021 17:12:13 +0800</pubDate><description><![CDATA[ShellExecuteA();

]]></description><category></category></item><item><title><![CDATA[working copy ““ locked]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120330316</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120330316</guid><author>youngauthor</author><pubDate>Thu, 16 Sep 2021 15:33:18 +0800</pubDate><description><![CDATA[锁定目录下  clean up

]]></description><category></category></item><item><title><![CDATA[VS不能生成解决方案]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120325905</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120325905</guid><author>youngauthor</author><pubDate>Thu, 16 Sep 2021 11:42:15 +0800</pubDate><description><![CDATA[右键dll项目配置，配置QT版本。

]]></description><category></category></item><item><title><![CDATA[错误 “xxxx“:C++提示非标准语法；请使用 “&“ 来创建指向成员的指针]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120303030</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120303030</guid><author>youngauthor</author><pubDate>Wed, 15 Sep 2021 10:14:32 +0800</pubDate><description><![CDATA[修改
在提示的那一行认真检查类成员函数的调用，如
Widget.name
//Widget.name(); 正确的调用方式
1
2
原因
你使用应该是类的成员函数，而不是类的成员变量
当我们使用类的成员函数时，VS编辑器并不会自动帮我们加上圆括号（它会提示是成员函数，还是成员变量哦[图标颜色不同]），所以很多新手会忘记加（）以表示函数的调用。
当不加括号是，也就是函数不传入参数（void也是参数哦）的话，编译器将会理解成函数指针（在c++中，函数名就是函数的起始地址），但函数指针需要这样写&amp;Widg]]></description><category></category></item><item><title><![CDATA[类似 VS2013+QT5编译时error C2662: 不能将“this”指针从“const QgsFields”转换为“QgsFields &” : this指针也可以转换]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/120288339</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/120288339</guid><author>youngauthor</author><pubDate>Tue, 14 Sep 2021 15:17:51 +0800</pubDate><description><![CDATA[常量转换非常量很危险，常量的设计是为了不改变对象成员值，如果你硬要转换，可以:
(QgsFields &amp;)对象名；//C语言风格的强转
const_cast&lt;引用类型或指针类型&gt;(对象名);//C++风格的强转，去const化
举例如下：
const int a = 1;
int &amp;b = (int&amp;)a; //合法
int &amp;c = a; //不合法
int &amp;d = const_cast&lt;int&amp;&gt;(a);//合法

...]]></description><category></category></item><item><title><![CDATA[QSS--文件加载形式]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/119885392</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/119885392</guid><author>youngauthor</author><pubDate>Tue, 24 Aug 2021 10:58:24 +0800</pubDate><description><![CDATA[#include “QWbutton.h”
#include
#include
#include 
QWbutton::QWbutton(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
QPushButton * closeBtn = new QPushButton(this);
QRect a(10, 10, 100, 30);
closeBtn-&gt;setGeometry(a);
// closeBtn-&gt;setStyleSheet]]></description><category></category></item><item><title><![CDATA[动态链接库]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/119875749</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/119875749</guid><author>youngauthor</author><pubDate>Mon, 23 Aug 2021 19:14:48 +0800</pubDate><description><![CDATA[一.QT----动态链接库.
1.先创建widget.
2.创建dll
3.设置C++包含目录,为DLL头文件目录
4.设置C++库目录,为DLL的lib目录.(后设置为widget的.exe目录),或者自己拷贝.dll,.lib后设置为widget的.exe目录.
5.设置连接器输入,dll.lib名.

...]]></description><category></category></item><item><title><![CDATA[QRadioButton--单选框]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/119776886</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/119776886</guid><author>youngauthor</author><pubDate>Wed, 18 Aug 2021 11:39:59 +0800</pubDate><description><![CDATA[#include “mainwindow.h”
#include “ui_mainwindow.h”
#include
#include
#include
#include
#include
using namespace std;
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
QRadioButton *qccb=new QRadioButton(this);
qccb-&g]]></description><category></category></item><item><title><![CDATA[QT多选按钮]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/119776570</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/119776570</guid><author>youngauthor</author><pubDate>Wed, 18 Aug 2021 11:28:13 +0800</pubDate><description><![CDATA[#include “mainwindow.h”
#include “ui_mainwindow.h”
#include
#include
#include
#include
using namespace std;
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
QCheckBox *qccb=new QCheckBox(this);
qccb-&gt;setGeometry(0]]></description><category></category></item><item><title><![CDATA[qt单选--按钮]]></title><link>https://blog.youkuaiyun.com/youngauthor/article/details/119776494</link><guid>https://blog.youkuaiyun.com/youngauthor/article/details/119776494</guid><author>youngauthor</author><pubDate>Wed, 18 Aug 2021 11:25:39 +0800</pubDate><description><![CDATA[#include “mainwindow.h”
#include “ui_mainwindow.h”
#include
#include
#include
#include
using namespace std;
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
QCheckBox *qccb=new QCheckBox(this);
qccb-&gt;setGeometry(0]]></description><category></category></item></channel></rss>