我在重新安装的 Qt Creator 3.5.1 (开源) 中运行应用程序,该程序基于 Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10),32 位),构建成功。但也有警告:
Gtk-Message: Failed to load module "overlay-scrollbar"
(untitled01:20644): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(untitled01:20644): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
这解决方案没有帮助,sudo apt-get autoremove
而且
其他解决方案讨论了 gtk2-engines-pixbuf
包,但是 gtk3 呢?
你知道一些正确的想法吗?
答案1
在我的计算机上,安装 Ubuntu 16.04 后,我通过安装软件包解决了这个问题overlay-scrollbar-gtk2
:
sudo apt-get install --reinstall overlay-scrollbar-gtk2
答案2
您有三个选择:
- 忽略警告
删除覆盖滚动条的内容
#Step 1 echo "export GTK_OVERLAY_SCROLLING=0" >> ~/.profile #Step 2 mkdir -p ~/.config/gtk-3.0 cat <<EOF > ~/.config/gtk-3.0/gtk.css /* Adding the buttons on the edges (if you don't need them, skip the next 4 lines) */ .scrollbar { -GtkScrollbar-has-backward-stepper: 1; -GtkScrollbar-has-forward-stepper: 1; } /* Scrollbar trough squeezes when cursor hovers over it. Disabling that */ .scrollbar.vertical:hover:dir(ltr), .scrollbar.vertical.dragging:dir(ltr) { margin-left: 0px; } .scrollbar.vertical:hover:dir(rtl), .scrollbar.vertical.dragging:dir(rtl) { margin-right: 0px; } .scrollbar.horizontal:hover, .scrollbar.horizontal.dragging, .scrollbar.horizontal.slider:hover, .scrollbar.horizontal.slider.dragging { margin-top: 0px; } /* Slider widens to fill the scrollbar when cursor hovers over it. Making it permanent */ .scrollbar.slider.vertical:dir(ltr):not(:hover):not(.dragging) { margin-left: 0px; } .scrollbar.slider.vertical:dir(rtl):not(:hover):not(.dragging) { margin-right: 0px; } .scrollbar.slider.horizontal:not(:hover):not(.dragging) { margin-top: 0px; } EOF #Step 3 cat <<EOF > ~/.config/gtk-3.0/settings.ini [Settings] gtk-color-scheme="tooltip_bg_color:#ffffaf\ntooltip_fg_color:#000000" gtk-application-prefer-dark-theme=0 gtk-primary-button-warps-slider = false EOF #Step 4 sudo apt-get purge overlay-scrollbar overlay-scrollbar-gtk2
重新安装覆盖滚动条
sudo apt-get install --reinstall overlay-scrollbar overlay-scrollbar-gtk2
答案3
在 64 位 LTS18.04 上, 执行此工作时overlay-scrollbar-gtk2
并没有删除 gtk-message ,即:Failed to load module "overlay-scrollbar
overlay-scrollbar-gtk2:i386
sudo apt-get install --reinstall overlay-scrollbar overlay-scrollbar-gtk2:i386