maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Need assistance from QT programmer (https://talk.maemo.org/showthread.php?t=58569)

d-iivil 2010-09-24 12:57

Re: Need assistance from QT programmer
 
Quote:

Originally Posted by Berserk (Post 825143)
What do you not understand exactly?

In the example they don't use QTextStream::readLine(), they use QFile::readLine(), which is inherited from QIODevice.

The difference is that QTextStream::readLine() returns a QString and QFile::readLine() returns a qint64 (QByteArray in the example), but I don't know anything about qint64 or QByteArrays, so I'll stick with QTextStrem::readLine() :p

I understand it now, but when I first checked the example and didn't have a glue that I should use file.open I didn't pay attention to the example enough :)

Anyways... next "problem" is to read gconf -values and since Qt Creator doesn't support it natively and documentation is really poor on that area, I think I'm gonna have no spare time problems this weekend...

Berserk 2010-09-24 13:31

Re: Need assistance from QT programmer
 
Oh I'm sorry, I thought it was your current question, I read it wrong :p

But I'd also like to know that gconf thing :D I want to make an Install function in my Wallpaeper app, so people don't have to use the desktop settings anymore.

This seems to be something about GTK+ for Qt, haven't read it, gotta go again :p
http://ubuntuforums.org/showthread.php?t=1270124

d-iivil 2010-09-24 14:44

Re: Need assistance from QT programmer
 
Quote:

Originally Posted by Berserk (Post 825205)
Oh I'm sorry, I thought it was your current question, I read it wrong :p

But I'd also like to know that gconf thing :D I want to make an Install function in my Wallpaeper app, so people don't have to use the desktop settings anymore.

This seems to be something about GTK+ for Qt, haven't read it, gotta go again :p
http://ubuntuforums.org/showthread.php?t=1270124

Here's some info about it:
http://maemo.gitorious.org/~vivainio...nf/gconfitem.h

But once again I don't even know where to start with that. No matter what I write in the source I cannot make Qt Creator to build it...

Berserk 2010-09-25 15:56

Re: Need assistance from QT programmer
 
That page is linked from:
http://wiki.forum.nokia.com/index.ph...pers_for_GConf

The GConfItem looks like a great object to me, easy to use too, but I don't know what I should #include, maybe it needs another entry in the .pro file, just like QMaemo5InformationBox needs QT += maemo5..

The example on this page uses GConfItem:
http://wiki.forum.nokia.com/index.ph...th_Qt_Mobility

I've tried a few things, but Qt keeps telling me "GConfItem is not a type name" :(


Can somebody please clarify this GConfItem object? :D

Diph 2010-09-25 16:11

Re: Need assistance from QT programmer
 
Have you added these lines to .pro file?

Code:

CONFIG += link_pkgconfig
PKGCONFIG += gq-gconf


d-iivil 2010-09-25 17:02

Re: Need assistance from QT programmer
 
Quote:

Originally Posted by Berserk (Post 826067)
That page is linked from:
http://wiki.forum.nokia.com/index.ph...pers_for_GConf

The GConfItem looks like a great object to me, easy to use too, but I don't know what I should #include, maybe it needs another entry in the .pro file, just like QMaemo5InformationBox needs QT += maemo5..

The example on this page uses GConfItem:
http://wiki.forum.nokia.com/index.ph...th_Qt_Mobility

I've tried a few things, but Qt keeps telling me "GConfItem is not a type name" :(


Can somebody please clarify this GConfItem object? :D

If you get it working, please share with me how to just read a gconf value. That's all I need :)

Berserk 2010-09-25 17:22

Re: Need assistance from QT programmer
 
Quote:

Originally Posted by Diph (Post 826077)
Have you added these lines to .pro file?

Code:

CONFIG += link_pkgconfig
PKGCONFIG += gq-gconf


Yes :)
I also did a 'GConfItem' search on my NokiaQtSDK directory, but it found nothing.
It does have some gconf headers that I can include, but even when I included all of them, it still doesn't recognise GConfItem :(
The auto-complete feature of Qt Creator is a great way of seeing which headers can be included in this case :)

Do I need to install some additional packages for the Nokia Qt SDK?

Apparently this:
http://maemo.gitorious.org/~vivainio/maemo-af/libgq-fremantle/blobs/master/gconf/gconfitem.h
has to go into an include dir.. ?

Berserk 2010-09-25 17:49

Re: Need assistance from QT programmer
 
http://maemo.org/packages/view/libgq-gconf-dev/
It wouldn't install on Windows, but we're getting close :p

Diph 2010-09-25 18:18

Re: Need assistance from QT programmer
 
Install lib in scratchbox armel target and make links of gconf lib and include files under usr and place them in NokiaQtSDK Maemo usr/lib and usr/include.

Berserk 2010-09-26 17:35

Re: Need assistance from QT programmer
 
Thanks, but I don't quite understand it..
I'm using Madde on a WinXP system, so I guess that makes things different? :p


All times are GMT. The time now is 17:44.

vBulletin® Version 3.8.8