How to be notified when the application is minimized using Qt

2010-08-26 Thread Francesco Balestrieri
Hello,

I would like my application to react whenever the user minimizes it, i.e. 
presses the home button, and when he/she brings it back to the foreground. What 
is the best way to do it using Qt? I have tried to reimplement changeEvent, 
but the only event triggered in this case seems to be an activation event, 
which is also triggered in many other cases whenever the main window loses 
focus.

Thanks in advance,

Francesco
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QTestLib on N900

2010-08-22 Thread Francesco Balestrieri
Thanks Antonio, works like a charm!

Francesco

On Aug 22, 2010, at 5:01 PM, Antonio Aloisio wrote:

 Hi Francesco,
 You can find Qt test module in “tools” repository.
 
 http://repository.maemo.org/pool/fremantle/free/q/qt4-x11/
 
 Ciao,
 Antonio
 
 On Sat, Aug 21, 2010 at 3:02 PM, Francesco Balestrieri b...@balenet.com 
 wrote:
 Hello,
 
 I have created some tests using QTestLib and would like to execute them on 
 the N900, but when I try I get the error:
 
 error while loading shared libraries: libQtTest.so.4: cannot open shared 
 object file: No such file or directory
 
 Does anybody know if I could find the compiled library anywhere? I thought 
 I'd compile it myself but so far I have failed.
 
 Thanks in advance,
 
 Francesco
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


QTestLib on N900

2010-08-21 Thread Francesco Balestrieri
Hello,

I have created some tests using QTestLib and would like to execute them on the 
N900, but when I try I get the error:

error while loading shared libraries: libQtTest.so.4: cannot open shared 
object file: No such file or directory

Does anybody know if I could find the compiled library anywhere? I thought I'd 
compile it myself but so far I have failed.

Thanks in advance,

Francesco 
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Qt Date Time Picker?

2010-08-17 Thread Francesco Balestrieri
Hello,

I'm writing a MAemo5/Qt application where I need to display a dialog to select 
date and time together. I was wondering if anybody had to solve the same 
problem and could recommend a way forward using predefined widgets? 

The optimal for my use case would be to show an extra button in the 
Hildon-style Time Picker dialog (QMaemo5TimePickSelector) and open a date 
picker dialog when it's pressed, but I couldn't figure out how to customize the 
time picker to do that.

Thanks in advance!

Francesco
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt Date Time Picker?

2010-08-17 Thread Francesco Balestrieri

On Aug 18, 2010, at 4:02 AM, Robin Burchell wrote:

 Hi,
 
 Excerpts from Francesco Balestrieri's message of Tue Aug 17 17:11:42 +0100 
 2010:
 The optimal for my use case would be to show an extra button in the 
 Hildon-style Time Picker dialog (QMaemo5TimePickSelector) and open a date 
 picker dialog when it's pressed, but I couldn't figure out how to customize 
 the time picker to do that.
 
 QMaemo5TimePickSelector inherits from QMaemo5AbstractPickSelector, which has a
 selected(const QString ) signal which you could listen to.

Thanks. However this would mean asking the user to select date and time 
everytime, whereas I would like the date to be set only if needed (my 
description of the use case wasn't clear, sorry)

 
 The problem as I see would be that I don't think there's a Maemo date 
 selector widget,
 AFAIK...

I thought there was, at least QMaemo5DatePickSelector is part of the public API 
if I'm not mistaken.

I guess I'll make my own dialog with regular Qt input fields for date and time.

Francesco

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers