---
title: "qtwebkit cannot connect to X server问题"
author: "j2002sx"
date: "2010-08-24T11:32:27Z"
tags: []
categories: ["编程语言"]
slug: "qtwebkit-cannot-connect-to-x-server"
draft: false
lastmod: "2010-08-24T11:32:27Z"
id: 745751
url: "https://j2002sx.iteye.com/blog/745751"
---

qtwebkit cannot connect to X server 问题解决。

 

方法如下：

1.安装Xvfb

2.Xvfb :1 -ac -screen 0 1024x768x24 &

3.export DISPLAY=localhost:1.0