qt-interest@trolltech.com
[Top] [All Lists]

Re: Phonon and video width/height

Subject: Re: Phonon and video width/height
From: André Somers
Date: Mon, 10 Mar 2008 14:20:54 +0100


"John McClurkin" <jwm@xxxxxxxxxxx> wrote in message news:fr3bqu$otn$1@xxxxxxxxxxxxxxxx
troorl wrote:
Hi.
I don't understand, how to get width and height of video. There are no
appropriate methods in MediaObject and VideoWidget.
Create a new QApplication,
QApplication myApp(argc, argv);

Get a pointer to the application desktop,
QDesktopWidget *desktop = QApplication::desktop();

Get the width and height from the pointer,
int width = desktop->width();
int height = desktop->height();

Errr... this will result in an application with the size of the desktop (but not nessecairaly centered). That was not the question I believe. The question was how to the size of a video.

André
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>