Reply
Thread Tools
cjp's Avatar
Posts: 762 | Thanked: 395 times | Joined on Jan 2010 @ Helsinki
#91
D-Iivil hmm whatcha' got a cookin' this time?
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#92
Originally Posted by cjp View Post
D-Iivil hmm whatcha' got a cookin' this time?
Nothing special. Just need more space to add more options to the theme customizer.
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#93
Originally Posted by TNiga View Post
Here's a little test I made on my PC and it scrolls fine.
Your example works, but cannot get mine working

Here's what I've tried.
Attached Files
File Type: zip setupblackplastic.zip (24.1 KB, 101 views)
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#94
Originally Posted by D-Iivil View Post
Your example works, but cannot get mine working

Here's what I've tried.
Started to work when I unchecked the "widgetResizable" option from scrollarea's properties in designer.
__________________
My Maemo5 projects:
mSpede - Speed testing game | Them Bloody Ducks - 2D duck hunting game | Maetronome - A simple metronome app | CuteMPC - MPD client
 

The Following User Says Thank You to TNiga For This Useful Post:
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#95
Originally Posted by TNiga View Post
Started to work when I unchecked the "widgetResizable" option from scrollarea's properties in designer.
And I got it working by copying the widget to be inserted in scrollarea from your project and then added my content there.
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#96
Nice...
__________________
My Maemo5 projects:
mSpede - Speed testing game | Them Bloody Ducks - 2D duck hunting game | Maetronome - A simple metronome app | CuteMPC - MPD client
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#97
Okay, time to get back to drawing board. This time I want to localize my little UI. After googling I got no vizier on how to do this inside QT Creator. Basically I want to create translations for few languages and auto-select the language file to match user's current language set in phone's settings. And if no suitable language file is found, then the default (english) language file should be used.

Any help with this?
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#98
http://doc.qt.nokia.com/qt-maemo-4.6...alization.html

You can try QLocale::system().language() to get language. Then load QTranslator with correct language.

Last edited by Diph; 2010-09-13 at 13:35. Reason: ()
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#99
Originally Posted by Diph View Post
http://doc.qt.nokia.com/qt-maemo-4.6...alization.html

You can try QLocale::system().language() to get language. Then load QTranslator with correct language.
Reading thourh the documentation didn't give me a slightest glue on how to alter the .ui -file created by QT Creator so that labels would be translated :-(

I also didn't understand the format of .ts -file and how to include it on program start :-(
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#100
I haven't used Designer myself, but I think it should make labels etc. automatically translatable.

Did you try steps from here: http://doc.qt.nokia.com/qt-maemo-4.6...e-translations
 

The Following User Says Thank You to Diph For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:03.