Reply
Thread Tools
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#1
Hi,

I have a Qt app which I want to have a very large button on the screen for. The issue I have is that the button appears "wrapped" on the device when deployed.

Is there a limit to the height of a button?

I tried to set the vertical size policy of the button, but couldn't get it to work.

Any ideas?

Thanks,

Shep
Attached Files
File Type: zip sitrep-0.1.zip (27.5 KB, 120 views)
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#2
I'm assuming you are talking about Maemo 5 since you didn't mention anything. I think the button height is pretty much fixed in Maemo 5, because they are drawn using the .png images of current theme and there aren't images for buttons with different height. I'm not 100% sure though.
 

The Following User Says Thank You to TNiga For This Useful Post:
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#3
Originally Posted by TNiga View Post
I'm assuming you are talking about Maemo 5 since you didn't mention anything. I think the button height is pretty much fixed in Maemo 5, because they are drawn using the .png images of current theme and there aren't images for buttons with different height. I'm not 100% sure though.
Thanks TNiga,

Yes, I'm talking about maemo 5 for the N900.

Shep
 
Posts: 203 | Thanked: 152 times | Joined on May 2009 @ Austria
#4
I didn't test your software but i think i have the same problem.
Does it look like this?

Buttons in Scratchbox:


Buttons on device:


Is there any workaround?
Attached Images
  

Last edited by AndiThebest; 2010-02-02 at 19:11.
 
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#5
Originally Posted by AndiThebest View Post
I didn't test your software but i think i have the same problem.
Does it look like this?

Buttons in Scratchbox:


Buttons on device:


Is there any workaround?
I think you may have forgotten the screenshots?
 
Posts: 203 | Thanked: 152 times | Joined on May 2009 @ Austria
#6
sry..updated.
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#7
For scratchbox to show UI like on device you need to run your app with command "run-standalone.sh ./myapp" instead of just "./myapp".
 

The Following User Says Thank You to TNiga For This Useful Post:
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#8
Originally Posted by AndiThebest View Post
I didn't test your software but i think i have the same problem.
Does it look like this?

Buttons in Scratchbox:


Buttons on device:


Is there any workaround?
Firstly, let me say - that looks like a great app

That's exactly the issue I'm having.

Anyone got a solution??? A limit on the button size strikes me as a big problem for a touch screen device.

Shep
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#9
Pr1.1 introduced a limit to height on Qt buttons. Not sure if this is a bug or a feature.

This might help

https://bugs.maemo.org/show_bug.cgi?id=4717
__________________
N900_Email_Options Wiki Page

Last edited by mikec; 2010-02-02 at 23:05.
 

The Following User Says Thank You to mikec For This Useful Post:
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#10
Originally Posted by mikec View Post
Pr1.1 introduced a limit to height on Qt buttons. Not sure if this is a bug or a feature.

This might help

https://bugs.maemo.org/show_bug.cgi?id=4717
Thanks mikec. Looks like a bug dressed up as a feature....I guess I'll have to live with it.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:04.