【Qt】UserDefindeControl
根据Qt已有的widget进行继承扩展内容 在UI的普通文本模式下添加这个即可
<customwidgets>
<customwidget>
<class>SearchableComboBox</class>
<extends>QComboBox</extends>
<header location="global">../UsrDefineControl/searchable_combobox.h</header>
</customwidget>
</customwidgets>
Qt 在textWidget 或者QLineEdit中实现鼠标右键 选择 粘贴剪切功能 在如图中
关注公众号 海量干货等你