I'm compiling my pyqt project into an executable with pyinstaller, I'm using Qt virtual keyboard in the code and it works when running with python but after compiling with pyinstaller the executable doesn't have the keyboard.
Example code:
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5 import uic
os.environ["QT_IM_MODULE"] = "qtvirtualkeyboard"
class Gui(QWidget):
def __init__(self):
super(Gui, self).__init__()
uic.loadUi('test.ui', self)
if __name__ == "__main__":
app = QApplication(sys.argv)
gui = Gui()
gui.show()
sys.exit(app.exec())
The command I'm using to compile:
pyinstaller --clean --onefile --add-data "./test.ui:." --noconsole vkeyboard_test.py
I used the answer in this post to install qtvirtualkeyboard on linux, what should I add to the pyinstaller command to include the virtual keyboard?
Edit: I'm using archlinux and I found that there is a package called qt5-virtualkeyboard, could it help with this problem in any way possible?