After installing the plugin, it took a day to get involved. You can barely write a program.
When configuring eclipse, pay attention to the following two points:
1) Add QT + = widgets to the project name. Pro. Of course, write it after QT + = core GUI. If this parameter is not added, an error occurs during the link.
2) qt5 differs from qt4 in that it places frequently-used components in the qtwidgets folder. It seems to have been placed in qtgui before. Therefore, when using an earlier version of Eclipse plug-in (there is no qt5 Eclipse plug-in yet), the generated code is problematic. We need to change the include statement of the generated code.
After installing the QT creator, you cannot enter Chinese characters and get it out after two days. If you find that you do not solve this problem, you cannot learn QT with peace of mind.
The default ibus input method is used. After one day of hard work, I changed fcitx, but I still didn't get it out.
In the morning, I re-installed ibus and uninstalled fcitx.
In fact, you only need to add the following three sentences to/etc/environment:
#Input Methodexport GTK_IM_MODULE=ibusexport XMODIFIERS=@im=ibusexport QT_IM_MODULE=ibus
Others are added to/etc/profile or ~ /. In bashrc, you can add all of them, but you must ensure that the user can log on to any terminal with the following results:
freeitdog@freeitdog-K43TA:~$ echo $GTK_IM_MODULE ibusfreeitdog@freeitdog-K43TA:~$ echo $XMODIFIERS @im=ibusfreeitdog@freeitdog-K43TA:~$ echo $QT_IM_MODULE ibusfreeitdog@freeitdog-K43TA:~$
Sometimes, you may find that the setting is only valid for the current terminal.
I don't know if fcitx is the same fashion. I only have one computer.
Another point is to set the default system input method:
im-switch -c
It seems that Linux is not suitable for beginners like me. There are too many fragmented issues.
Next figure: