擅长:python、mysql、java
<p>使用<code>filterMode : Qt::MatchFlags</code>属性。此属性保存如何执行筛选。如果filterMode设置为<code>Qt::MatchStartsWith</code>,则只显示以键入字符开头的条目。<code>Qt::MatchContains</code>将显示包含类型化字符的条目,以及<code>Qt::MatchEndsWith</code>以类型化字符结尾的条目。<strong>目前,仅实现这三种模式。将filterMode设置为任何其他<code>Qt::MatchFlag</code>将发出警告,并且不会执行任何操作。默认模式是<code>Qt::MatchStartsWith</code>。</p>
<p><strong>此属性在Qt 5.2中引入。</strong></p>
<p>访问功能:</p>
<pre><code>Qt::MatchFlags filterMode() const
void setFilterMode(Qt::MatchFlags filterMode)
</code></pre>