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

Qt-interest Archive, March 2008
Widgets in Main Window don't fit different screen resolutions


Message 1 in thread

Hi, (this is my first post)

I was developing an application in a computer with X screen resolution, and I was drawing my QWidgets according the size of the current screen, when I ran it everything went perfect, then I continued my developing in other computer with Y screen resolution, when I ran it theQMainWindow profile fit the screen size, but the rest of the Widgets stay as in the other resolution, now I have a big free font space. I read about some solution like implement layouts, I did this, I set the Widget's size policy to expanding, but nothing work, everything stayed without change.

Any idea? I will be glad with your solutions.

Thanks a lot

David R.
_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar siempre a la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com
--
 [ signature omitted ] 

Message 2 in thread

David,

i suggest posting a screenshot of your issue, as well as some code. in the 
case you are using designer, post your ui file. 
also i assume you have read http://doc.trolltech.com/4.3/layout.html

> Hi, (this is my first post)
>
> I was developing an application in a computer with X screen resolution, and
> I was drawing my QWidgets according the size of the current screen, when I
> ran it everything went perfect, then I continued my developing in other
> computer with Y screen resolution, when I ran it theQMainWindow profile fit
> the screen size, but the rest of the Widgets stay as in the other
> resolution, now I have a big free font space. I read about some solution
> like implement layouts, I did this, I set the Widget's size policy to
> expanding, but nothing work, everything stayed without change.
>
> Any idea? I will be glad with your solutions.
>
> Thanks a lot
>
> David R.



-- 
 [ signature omitted ] 

Message 3 in thread

Most likely your top level widget didn't use the layout correctly... and the child widgets were place in a specific location.

Try to use designer, and use the preview feature... if you can resize the widget then it should work.. If some widgets are being left out and not resizing, theres your problem

Scott



> -----Original Message-----
> From: David Rodríguez [mailto:d_rdgz@xxxxxxxxxxx]
> Sent: Tuesday, March 11, 2008 3:05 AM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Widgets in Main Window don't fit different screen resolutions
> 
> 
> Hi, (this is my first post)
> 
> I was developing an application in a computer with X screen resolution,
> and I was drawing my QWidgets according the size of the current screen,
> when I ran it everything went perfect, then I continued my developing
> in other computer with Y screen resolution, when I ran it
> theQMainWindow profile fit the screen size, but the rest of the Widgets
> stay as in the other resolution, now I have a big free font space. I
> read about some solution like implement layouts, I did this, I set the
> Widget's size policy to expanding, but nothing work, everything stayed
> without change.
> 
> Any idea? I will be glad with your solutions.
> 
> Thanks a lot
> 
> David R.
> _________________________________________________________________
> Tecnología, moda, motor, viajes,...suscríbete a nuestros boletines para
> estar siempre a la última
> http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMainten
> ance&Brand=WL&RU=http%3a%2f%2fmail.live.com
> --
> 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/

--
 [ signature omitted ] 

Message 4 in thread

On Tuesday 11 March 2008 11:46:28 you wrote:
> Hi,
>
> here they are....
you sent a broken windows bitmap and a compiled header.
thats not very usefull.
you need to send a screenshot of your problem or at least the ".ui file"


-- 
 [ signature omitted ]