maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QDataStream ad QList problem! (https://talk.maemo.org/showthread.php?t=55082)

gri 2010-06-04 15:48

Re: QDataStream ad QList problem!
 
Quote:

Originally Posted by saxen (Post 699710)
really nice code gri, i think i'm gonna try it :P
btw i've a question about ui...how to set window size?! i mean max res is 800*480 or 480*800 but what's about status bar?! :S

Why do you want to set the windows sizes? Dialogs have the size they need. Windows take the most space they can get. The layouting is done by Qt. Think of porting to another device: It may have completely different screen sizes. Let Qt do the work and don't care about them :)

saxen 2010-06-04 15:57

Re: QDataStream ad QList problem!
 
mmm so what's about dialogs(or widget) size?! should i've to fix it?! :o

gri 2010-06-04 16:04

Re: QDataStream ad QList problem!
 
Quote:

Originally Posted by saxen (Post 699735)
mmm so what's about dialogs(or widget) size?! should i've to fix it?! :o

You know how to use the layouts?
Just open the Qt Designer and play around with layouting (there are tool buttons for that). You will also need to understand the sizePolicy options.

That's all you need. No pixel coordinates or something else :)

saxen 2010-06-04 16:07

Re: QDataStream ad QList problem!
 
i guess layout will do everything about screensize!
btw once app's core is done i'll start move around in order to create a "cute" ui :)

thanks again!

saxen 2010-06-04 18:15

Re: QDataStream ad QList problem!
 
could you suggest me some guide about ui creation!? i've found a lot of documents but i'd like to found a good one to learn how to create ui ;)

gri 2010-06-04 18:34

Re: QDataStream ad QList problem!
 
Quote:

Originally Posted by saxen (Post 699903)
could you suggest me some guide about ui creation!? i've found a lot of documents but i'd like to found a good one to learn how to create ui ;)

The best source is the Qt documentation itself. Take a look in your Qt Assistant.

http://doc.qt.nokia.com/qt-maemo-4.6...d-layouts.html
http://doc.qt.nokia.com/qt-maemo-4.6...s-layouts.html

saxen 2010-06-05 10:36

Re: QDataStream ad QList problem!
 
thanks for these links! btw i still don't understand how set items size properly in order to fix them in main widget :O

where can i find a real example!? i mean a *.ui file from some app :O

EDIT. ok i've found a good one :p


All times are GMT. The time now is 21:33.

vBulletin® Version 3.8.8