QtCreator Linux ubuntu24.04问题集合

入门操作:

左侧边栏目没了:https://blog.csdn.net/weixin_44511670/article/details/144979040

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.是需要~/.bashrc改成如下形式:

bash 复制代码
#Qt5
export QtDir='/home/david/MySoft/Qt5.15/5.15.0/gcc_64'
export PATH=${QtDir}/bin:${PATH}
export LD_LIBRARY_PATH=${QtDir}/lib:${LD_LIBRARY_PATH}
export QT_PLUGIN_PATH=${QtDir}/plugins:${QT_PLUGIN_PATH}
export QML2_IMPORT_PATH=${QtDir}/qml:${QML2_IMPORT_PATH}
export QT_QPA_PLATFORM_PLUGIN_PATH=${QtDir}/plugins/platforms:${QT_QPA_PLATFORM_PLUGIN_PATH}
export DISPLAY=:1

尤其增加:export DISPLAY=:1 24.0

相关推荐
CodeOfCC17 分钟前
Linux 嵌入式arm64安装openclaw
linux·运维·服务器
薛定猫AI1 小时前
【技术干货】Claude Code 终端编程实战:从零搭建 Windows 高效 AI 开发环境
人工智能·windows
宵时待雨1 小时前
linux笔记归纳3:linux开发工具
linux·运维·笔记
magrich1 小时前
安装NoMachine并解决无外接显示器桌面黑屏
linux·运维·服务器
fish_xk2 小时前
Linus基础指令
linux·服务器
宁波阿成2 小时前
在ubuntu22.04源码级安装sub2api
linux·运维·ubuntu·ai·api·token·中转站
charlie1145141912 小时前
嵌入式Linux驱动开发(7) 从虚拟设备到真实硬件 —— LED驱动硬件基础
linux·开发语言·驱动开发·内核·c
小短腿的代码世界3 小时前
QCefView深度解析:Qt应用中嵌入Chromium浏览器的终极方案
开发语言·qt
Mortalbreeze3 小时前
软件包管理器yum和编辑器vim详解 —— 附带vim配置链接
linux·服务器
李日灐3 小时前
< 7 > Linux 开发工具:git 版本控制器 和 cgdb/gdb 调试器
linux·运维·服务器·开发语言·git·调试器·gdb/cgdb