[Qt-interest] QTestLib without X server access

J-P Nurmi jpnurmi at gmail.com
Wed Dec 17 18:41:22 CET 2008


On Wed, Dec 17, 2008 at 7:04 PM, Mathieu MARACHE
<mathieu.marache at gmail.com>wrote:

> Hi,
>
> I'm trying to use the QTestLib framework to make some tests and use
> those in a continuous integration framework. However the test will
> fail with this error :
>
> cannot connect to X server
>

Hi,

Disable the QtGui module in your .pro file:

QT -= gui

After that QTEST_MAIN() will automatically instantiate a QCoreApplication.

--
J-P Nurmi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081217/ffd6a33b/attachment.html 


More information about the Qt-interest-old mailing list