Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, May 2008
Dialog on embedded arm-linux is not displayed at (0,0)


Message 1 in thread

Hi All,

I am running QT on embedded arm running linux. I've a VGA screen and i've
set the dialog size accordingly. But when i run the application the dialog
is displayed with an offset and not starting from (0,0).

Is there any API in can use to set co-ordinates such that it is  displayed
at (0,0) ?
-- 
 [ signature omitted ] 

Message 2 in thread

  "Harinandan S" <harinandans@xxxxxxxxx> wrote in message news:5a459d5e0805260546w46f3a20bjdcfc35601f18219d@xxxxxxxxxxxxxxxxx

  Hi All,

  I am running QT on embedded arm running linux. I've a VGA screen and i've set the dialog size accordingly. But when i run the application the dialog is displayed with an offset and not starting from (0,0). 

  Is there any API in can use to set co-ordinates such that it is  displayed at (0,0) ?
  -- 
  Regards,
  Harinandan S 
You may want to read the documentation for QWidget::pos.

Regards,

André

 

Message 3 in thread

26 мая 2008, в 15:46, Harinandan S написал(а):
>
> I am running QT on embedded arm running linux. I've a VGA screen and  
> i've
> set the dialog size accordingly. But when i run the application the  
> dialog
> is displayed with an offset and not starting from (0,0).
>
> Is there any API in can use to set co-ordinates such that it is   
> displayed
> at (0,0) ?

(forgot to reply to ML)

You can use move() method, or just maximize your dialog window as soon  
as you show it, see QWidget::showMaximized()

-- 
 [ signature omitted ]