You're right if it is only a QT Application. But it I'll use the WQApplication(env, true) the QApplication is the only one that's accepted.
 
I did try now to give the QApplication the parameter, but it isn't working too. It seems like the application needs the parameter on startup.
 
Gesendet: Freitag, 07. März 2014 um 14:39 Uhr
Von: "Jason H" <scorp...@yahoo.com>
An: "witty-interest@lists.sourceforge.net" <witty-interest@lists.sourceforge.net>
Betreff: Re: [Wt-interest] Qt with WT
To use it with Qt without  display, you must use QCoreApplication, not QApplication.
 
 

From: Koen Deforche <k...@emweb.be>
To: "witty-interest@lists.sourceforge.net" <witty-interest@lists.sourceforge.net>
Sent: Friday, March 7, 2014 8:06 AM
Subject: Re: [Wt-interest] Qt with WT
 
Hey Torsten,
 
2014-03-07 13:53 GMT+01:00 Torsten Schulz <tssch...@gmx.net>:
 
Hello,
 
I look for your famous WtWithQt. But I'm not able to run it in Apache, because it needs a X-Server:
QXcbConnection: Could not connect to display 
 
If I use the build-in server of witty, it isn't a problem. I have only to add "-platform offscreen" to the command line.
 
Do you know how I can add this at apache too?
 
I wasn't aware of this (I guess I never tested this example with apache).
 
But I would assume then this is something you can (and should) accomplish by passing this in a custom-made argc/argv that you pass to the QApplication constructor that you put in main() ?
 
Regards,
koen 
 
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
 
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

 
------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to