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

Qt-interest Archive, March 2002
General questions on style


Message 1 in thread

I'm making an application that will be run on both X11 and QT/E.  I'm pretty
sure I can use #defines to make platform-specific code to change appearance,
but I have a few questions on what to do from there.

On the QT/E application, I'd like to have my app use the exact style of the
QPE base applications (settings dialogs, file browser, etc.) but I'm not
sure how to go about it.  I want the same little bar at the top with OK
button, and I want the app to be "maximized", e.g., no moving or resizing.

On the X11 version, I'd like to make it so that if the user resizes the
window, the contents resize as well, like the way that, if you resize a
layout in Designer, all the widgets inside it expand to fill the new space.
I had previously done this by handling the resizeEvent signal, but it's a
bit tedious, doesn't look as smooth, and just feels like a kludge.  Is there
any easy way to make my window contents expand to fill the whole window in
X11?

R/
James


Message 2 in thread

Hi,

> On the X11 version, I'd like to make it so that if the user resizes the
> window, the contents resize as well, like the way that, if you resize a
> layout in Designer, all the widgets inside it expand to fill the new space.
> I had previously done this by handling the resizeEvent signal, but it's a
> bit tedious, doesn't look as smooth, and just feels like a kludge.  Is there
> any easy way to make my window contents expand to fill the whole window in
> X11?

What's wrong with layouts?

Dimitri


Message 3 in thread

Dude:

Any of the examples that come with Qt installation are
written so that the contents automatically resize when
the window resizes.  Thats the way Qt works using
layouts.

Salman



> 
> On the X11 version, I'd like to make it so that if
> the user resizes the
> window, the contents resize as well, like the way
> that, if you resize a
http://qt-interest.trolltech.com

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/