[Qt-interest] QApplication to QCoreApplication
Arnold Krille
arnold at arnoldarts.de
Wed Jan 14 11:09:57 CET 2009
On Wednesday 14 January 2009 09:22:13 Nitin Mahajan wrote:
> For example if I want to run the mediaplayer demo application without UI,
> how to I do that? I used the constructor QApplication ( int & argc, char
> ** argv, bool GUIenabled ) and could get away with the UI. However I can
> still see the mouse pointer, I dont want to see the mouse pointer also. How
> do I achieve this?
That one is easy: Shut down X!
Seriously: Qt has nothing to do with the presence of the mouse-pointer. And
regardless whether you run a gui or a non-gui app inside your X, there will
always be a mouse-pointer.
Unless some app tells X to hide the pointer, which is something you might want
to try. Maybe this one helps or shows a direction:
http://doc.trolltech.com/4.4/qwidget.html#cursor-prop
And when you are talking about a media-player you are definitely talking about
gui, so if you use any gui-classes from Qt, you have to use QApplication
instead of QCoreApplication.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090114/c336468b/attachment.bin
More information about the Qt-interest-old
mailing list