PDA

View Full Version : icon out of button



mattia
13th March 2008, 13:42
Hello, when i use italian as language in my application i get some weird icons into this buttons
http://img225.imageshack.us/img225/883/buttontq7.png
this happens just when i lunch the application with "-style cleanlooks" parameter.
Any hint?

wysota
13th March 2008, 15:36
Did you wrap your buttons into a layout?

mattia
13th March 2008, 16:24
Yes i did...

wysota
13th March 2008, 16:34
What happens if you resize the dialog during runtime?

mattia
14th March 2008, 13:43
nothing...i post an image with the layout used, i did it with Qt designer

http://aycu19.webshots.com/image/47218/2002046613148767882_rs.jpg

wysota
14th March 2008, 13:53
Did you change any properties of the buttons related to determining the size? size policy, minimum size, maximum size, stretch factors?

mattia
14th March 2008, 14:24
mmm...I don't think i changed any properties, anyway take a look
http://aycu06.webshots.com/image/48605/2001485906696657679_rs.jpg

wysota
14th March 2008, 14:42
You changed the size policy. Change it back to Minimum x Fixed.

mattia
14th March 2008, 15:08
i tried but nothig, i get the same results, if it can be helpful i set the icon in this way:

pushButton->setIcon ( QIcon ( ":/images/apply.png" ) );

wysota
14th March 2008, 15:33
Could you post (using the attachment feature of the forum) your ui file?

mattia
14th March 2008, 15:41
Ok.
Thx for your time.

wysota
14th March 2008, 16:25
The dialog behaves fine for me. Which version of Qt are you using?

mattia
14th March 2008, 16:31
I'm using Qt version 4.3.4
thx

wysota
14th March 2008, 17:19
I tested it against 4.3.3 and 4.4tp1 and it works just fine...

Can you provide a minimal compilable example reproducing the problem?

mattia
19th March 2008, 15:45
try to compile this and run it with "-style cleanlooks" option
thx for your time!

wysota
19th March 2008, 21:52
Seems that you are right. I think something (the style?) doesn't respect the icon size. I suggest reporting it to Trolltech using the tasktracker.

mattia
28th March 2008, 14:04
it has been reported as bug.
You can check it at
http://trolltech.com/developer/task-tracker/index_html?id=204269&method=entry
;)

fnmblot
28th March 2008, 14:56
Yeah, I was having the same issue on my app. I thought it was just because I was ssh'ing into the server and not on a desktop that this was happening.