maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Qt Yellow alert message (https://talk.maemo.org/showthread.php?t=39547)

Sasler 2010-01-07 09:01

Qt Yellow alert message
 
Dow anyone know how to do this "yellow alert message" without any buttons that appears in the middle of the screen (the one that is displayed, after installing an application)? I've tried to use QMessageBox but I only get a dialog at the bottom of the screen with an OK button.

Thanks

marionegroponzi 2010-01-07 09:09

Re: Qt Yellow alert message
 
Last November I was told (at the Nokia-Qt conference) it was still not supported in Qt 4.5. Did you try with 4.6?

Sasler 2010-01-07 09:36

Re: Qt Yellow alert message
 
Quote:

Originally Posted by marionegroponzi (Post 456939)
Last November I was told (at the Nokia-Qt conference) it was still not supported in Qt 4.5. Did you try with 4.6?

Ah, OK. I'm using MADDE which uses Qt 4.5. So I'll just have to wait for the 4.6 to come out then. Thanks. :)

krk969 2010-01-07 10:52

Re: Qt Yellow alert message
 
Quote:

Originally Posted by Sasler (Post 456928)
Dow anyone know how to do this "yellow alert message" without any buttons that appears in the middle of the screen (the one that is displayed, after installing an application)? I've tried to use QMessageBox but I only get a dialog at the bottom of the screen with an OK button.

Thanks

not sure if it will work, but would be intrstd to know :)

why not use the dbus services for this.

here you can find the dbus service you can use in maemo for notifications ==> HERE

here you can find the QT Dbus interfaces ==> HERE

this is exactly the kind of documentation missing for QT.
there is nothing that helps us develop for *maemo* using QT except for official QT documentaton and the wiki pages here.
we mostly have just general info about QT hildon integration all over the wiki , nothing really concrete for newcomers to start using.

rkm 2010-01-07 11:53

Re: Qt Yellow alert message
 
QMaemo5InformationBox should handle that. It's included in the Maemo Qt tech preview 2.

http://labs.trolltech.com/blogs/2009...ext-iteration/

rcull 2010-01-07 12:39

Re: Qt Yellow alert message
 
Quote:

Originally Posted by Sasler (Post 456928)
Dow anyone know how to do this "yellow alert message" without any buttons that appears in the middle of the screen (the one that is displayed, after installing an application)? I've tried to use QMessageBox but I only get a dialog at the bottom of the screen with an OK button.

Thanks

I dont know about QT but in gtk its:

hildon.hildon_banner_show_information(
self.window,
"",
"There are no entries to display !")

I'm not sure what the first string does. Iconname?

Rick

attila77 2010-01-07 12:44

Re: Qt Yellow alert message
 
See http://wiki.maemo.org/Maemo_Qt_Extra..._documentation

While I have not tried these libs personally, I don't see anything 4.6 specific about them, so I would not be surprised if they worked with 4.5, too.

qwerty12 2010-01-07 12:58

Re: Qt Yellow alert message
 
Quote:

Originally Posted by rcull (Post 457177)
I'm not sure what the first string does. Iconname?

Yep. Has no effect in Fremantle.

Sasler 2010-01-07 14:38

Re: Qt Yellow alert message
 
Quote:

Originally Posted by attila77 (Post 457186)
See http://wiki.maemo.org/Maemo_Qt_Extra..._documentation

While I have not tried these libs personally, I don't see anything 4.6 specific about them, so I would not be surprised if they worked with 4.5, too.

If I use these Maemo Qt Extra Libraries, does it mean that they would work only in Maemo?

attila77 2010-01-07 16:41

Re: Qt Yellow alert message
 
@Sasler: Yes. If your application is also supposed to run on desktop machines, the simplest is to just #ifdef it. If would have been way cooler if we could achieve this by QMessageBox::information() or sorts, but for now, you need the extra libs.


All times are GMT. The time now is 06:09.

vBulletin® Version 3.8.8