[Qt-qml] Setting width and height depending on screen resolution
Felipe Mogollon
fmogollon at vicomtech.org
Fri Oct 29 09:25:04 CEST 2010
Hi Bea, thanks for your answer
I have a qt method that returns those widths and height but I would
like to know if qml can do that. If I get screen size from QT I can't
load anymore my qml GUI from qt creator and I wouldn't like to loose
that feature.
I don't know if that can be done or if I am asking for impossible things, but...
Anyway, many thanks for your answer.
regards
Felipe
On Fri, Oct 29, 2010 at 5:54 AM, <bea.lam at nokia.com> wrote:
> Hi Felipe,
>
> On 28/10/2010, at 9:50 PM, ext Felipe Mogollon wrote:
>
>> Hi,
>>
>> I am developing a qml gui based application and I would like to know
>> if there is any way of knowing screen resolution (width and height)
>> from qml in order to set icons position relative to that resolution.
>
> You can use QDesktopWidget to find the screen width and height.
>
>
> regards,
>
> Bea
>
>
More information about the Qt-qml
mailing list