maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QT Message boxes (PyQT) like hildon note? (https://talk.maemo.org/showthread.php?t=46341)

noobmonkey 2010-03-02 23:16

QT Message boxes (PyQT) like hildon note?
 
Hi everyone,
I'm looking for something similar to hildon note.... When i tried hildon note it asked me for GTK windows... which i dont have.... so i looked into QTMessageBox.... well they all have buttons.... I want something to pop up with a simple message like "Loaded".

I've already tried the loading bars.... but they never dissapear......

All i want to do is.... pop up a message for a second or so...... or... show a loading symbol while my information loads :)

Had a previous thread but realising that hildon, gtk isn't going to work......

Any quggestions pleeeeeeeeease? :D

Flandry 2010-03-02 23:26

Re: QT Message boxes (PyQT) like hildon note?
 
http://qt.nokia.com/doc/qt-maemo-4.6...mationbox.html

This whole Qt headache will be a lot less so when 4.6 becomes the default.

noobmonkey 2010-03-02 23:36

Re: QT Message boxes (PyQT) like hildon note?
 
yeah just realised........
GTK, hildon and pyside can do it..........

So is that really the case, my app looks crap! and there is no simple solution? :(

JohnLF 2010-03-02 23:36

Re: QT Message boxes (PyQT) like hildon note?
 
How about the message popup that e.g. the "Now Playing" app uses?

noobmonkey 2010-03-02 23:41

Re: QT Message boxes (PyQT) like hildon note?
 
Quote:

Originally Posted by JohnLF (Post 553219)
How about the message popup that e.g. the "Now Playing" app uses?


hmmm
Lots of questions there.... is it gtk, hildon, pyside, pyqt?
If qt, does it have buttons? :D

Flandry 2010-03-02 23:47

Re: QT Message boxes (PyQT) like hildon note?
 
Just use Qt 4.6 and you have support for the banner. I'm stuck with 4.5 because of other dependency issues, which was the source of my previous comment.

JohnLF 2010-03-02 23:50

Re: QT Message boxes (PyQT) like hildon note?
 
Don't know what it is, but it like when you get a SMS in - it pop up in the top left of your screen for a second or two then disappears - no buttons, but if you click on it it takes you somewhere - I assume this bit can be disabled.

(aside: I think its about time I got my programming skills past the 1980's use of Pascal and did some development work for this great phone!)

noobmonkey 2010-03-02 23:51

Re: QT Message boxes (PyQT) like hildon note?
 
Quote:

Originally Posted by Flandry (Post 553233)
Just use Qt 4.6 and you have support for the banner. I'm stuck with 4.5 because of other dependency issues, which was the source of my previous comment.

erm, no idea how to lol - 2 weeks of QT 4.5 has confused me......

also have no idea what effect it would have lol....

noobmonkey 2010-03-02 23:53

Re: QT Message boxes (PyQT) like hildon note?
 
Quote:

Originally Posted by JohnLF (Post 553237)
Don't know what it is, but it like when you get a SMS in - it pop up in the top left of your screen for a second or two then disappears - no buttons, but if you click on it it takes you somewhere - I assume this bit can be disabled.

(aside: I think its about time I got my programming skills past the 1980's use of Pascal and did some development work for this great phone!)

ooo i love pascal - did some last week :) hehehe!

attila77 2010-03-03 00:22

Re: QT Message boxes (PyQT) like hildon note?
 
You could cheat, too... Here's a snippet (in C++, but I'd say your a pro enough by now to convert it to Python without any problems :) ). Ugly, but works in Qt4.5, too.

Code:

void MyClass::notify(QString text)
{
    QDBusMessage msg = QDBusMessage::createMethodCall("org.freedesktop.Notifications",
      "/org/freedesktop/Notifications",
      "org.freedesktop.Notifications",
      "SystemNoteDialog");

    QList<QVariant> args;
    args.append(text);
    args.append(static_cast<quint32>(0));
    args.append("ok");

    msg.setArguments(args);

    QDBusConnection::systemBus().call(msg);
}



All times are GMT. The time now is 19:18.

vBulletin® Version 3.8.8