解決Qt Creator不能輸入中文的問題(fcitx輸入框架)
文章轉自 https://blog.csdn.net/discoverer100/article/details/52431958
1、環境:
系統: debian9
Qt版本: Qt5.6.3
輸入法: 搜狗輸入法
2、解決方法:
2-1 安裝 fcitx-frontend-qt5
apt-get install fcitx-frontend-qt5
2-2 進入以下目錄
cd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts
2-3 將該目錄的檔案複製到下面的兩個目錄(根據Qt 5 的安裝路徑而定)
~/Qt5.6.3/5.6.3/gcc_64/plugins/platforminputcontexts
~/opt/Qt5.6.3/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
重啟qt,就可以在qtcreator中輸入中文了。
相關推薦
解決Qt Creator不能輸入中文的問題(fcitx輸入框架)
文章轉自 https://blog.csdn.net/discoverer100/article/details/52431958 1、環境: 系統: debian9 Q
解決archlinux下QT程序,以及wineQQ無法輸入中文(.xinitrc)
light hup blog arc program xinitrc 無法 wineqq qt5 昨天安了i3wm,發現fcitx在很多程序中無法輸入中文,nixnote2,還有ss-qt5 查了wiki,明明有在~/.xinitrc中加入 export [email
Android學習筆記 —— Android 開發中,限制 EditText 輸入框不能輸入中文(漢字)
今天在練習開發一個小專案的時候,需要限制 EditText 輸入框不能輸入中文(漢字),在網上找了很多例子, 結合自己的實際,終於完成了這一功能。現在把程式碼記錄下來,方便以後查詢! 首先是xml佈
關於如何在buntu能夠輸入中文(夠詳細)
有一點先提一下: 這裡只有去點了勾,才能下滑到下面看到Pinyin 以下內容為裝載 原文連結: http://www.cnblogs.com/zlslch/p/6943318.html 不多說,直接上乾貨! 其實啊,很簡單
CSS中輸入框(搜索框)的實現技巧
直接 單獨 css 文字 輸入框 需要 其中 單個 直接插入 我們都知道在一般網站上出現的輸入框裏都會有各種各樣的圖標、文字等樣式。那麽如何實現input輸入框中插入圖標呢?一般的方法是:用定位將需要的圖標用定位的方式實現,這種方式雖然可以實現,但是如果我們需要插入
input輸入框 (只能輸入正整數)
<input type="number" class="form-control" id="inoutnum" name="inoutnum" value='{$ITEM->inoutnum}' min="0" placeholder="請輸入數量..." onkeyup="i
Android EditView 輸入限制(軟鍵盤限制)
眾所周知EditView有個inputType 屬性可以設定輸入的型別。 如下設定,則只能輸入數字: android:inputType="number" 但是有時候需要自定義輸入限制條件,比如第一位只能是“1”,一共11位,超過11位則無法輸入,或者只允許輸入小於5以下的數字等,
windows32程式開發第一課輸入輸出(小計算器模板)
1.輸出 首先注意win32程式的常規開頭,MessageBox()作為輸出(類似於printf和cout,該函式有四個引數,第一個是其父視窗,第二個第三是字串型別,具體如下圖對應: 第四個引數是每一個框下邊的是,否,取消按鈕,和圖示等。 #include<windows.h
10-9 輸入n(n小於10)個整數,統計其中素數的個數。
輸入n(n小於10)個整數,統計其中素數的個數。要求程式由兩個檔案組成,一個檔案中編寫main函式,另一個檔案中編寫素數判斷的函式。使用檔案包含的方式實現。試編寫相應程式。 Prime.c (素數判
iOS輸入檢視(如UITextView UITextField)點選時沒有彈出鍵盤輸入窗
這樣的情況大體有三種原因: 1.彈出窗被更高層次的視窗遮擋了,從介面上看不出鍵盤窗的響應。 我們可以通過以下的方法來檢測應用中所有視窗的等級 for (UIWindow *window in [[UIApplication sharedApplication] windo
今天開始學Java 輸入任意(使用者,成績)序列,可以獲得成績從高到低或從低到高的排列,相同成績
題目描述查詢和排序題目:輸入任意(使用者,成績)序列,可以獲得成績從高到低或從低到高的排列,相同成績 都按先錄入排列在前的規則處理。 例示: jack 70 peter 96 Tom 70 smith 67
C#練習——統計整型陣列中不重複數字的個數、將普通日期格式轉換成漢字日期格式、在控制檯錄入每個學生的姓名,當用戶輸入quit(不區分大小寫)時,程式停止接受使用者的輸入,並且顯示出使用者輸入的學生的個數
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReviewPractice { class Pr
Qt creator 快速入門(一)
第8章 介面外觀 調色盤QPalette類包含了部件各種狀態的顏色組。一個調色盤包含3種狀態: - 啟用顏色組QPalette::Active,用於獲得鍵盤焦點的視窗; - 非啟用顏色組QPalette::Inactive,用於其他的視窗; - 失效顏色
輸入身高(單位:釐米)。統計150-154,155-159,160-164,165-169,170-174,175-179,低於150和高於179,共八檔次進行
/*演算法分析:由於多數統計區間的大小都固定為5,這樣用“身高/5-29”作下標,則只需開闢8個元素的陣列,對應8個統計檔次,即可完成統計工作*/#include<stdio.h>int main(){ int i,sg,a[8]={0,0,0,0,0,0,
c# 控制TextBox只能輸入小數(只能輸入一個小數點,小數點後只能輸入兩位,第一位不能是小數點)
/// <summary> /// 價格和數量輸入控制(只能輸入一個小數點,小數點後只能輸入兩位,第一位不能是小數點) /// </summary> /// <param name="e">
Jquery限制文字框只能輸入數字(小數點也可以)
$(function() { $("input[type='text']").bind('keydown', function(event) { var keyCode = event.which;
地理位置輸入提示(不顯示地圖)
前言 雖然,現如今不做GIS了,但是遇到了一個地理位置自動補全的功能,補充在這個系列裡,或許是最後一篇GIS的文章了。 地理位置自動補全在哪裡用 做GIS的專案一般是少不了地圖的,在做搜尋的時候大多也是把搜尋欄放在地圖的上面漂浮,搜尋結果直接展示在地圖
STM32 GPIO輸入輸出(基於HAL庫)
一、基礎認識 GPIO全名為General Purpose Input Output,即通用輸入輸出。有時候簡稱為“IO口”。通用,說明它是常見的。輸入輸出,就是說既能當輸入口使用,又能當輸出口使用。埠,就是元器件上的一個引腳。 輸入模式和輸出模式是GPIO的基本特性,當然GPIO還有
Python讀取文本,輸出指定中文(字符串)
class 分享 /tmp () fun 問題 print fin 斷路器 因業務需求,需要提取文本中帶有檢查字樣的每一行。 樣本如下: 1 投入10kVB、C母分段820閉鎖備自投壓板 2 退出10kVB、C母分段820備投跳803壓板 3 退出10kVB
Qt model 顯示設定(居中靠右)、表頭、自定義排序
設定:顯示居中、靠左 QVariant SoloDccDataSegmentInfoTableModel::data(const QModelIndex &index, int role) const { if (role == Qt::TextAlignmentRole)