Reply
Thread Tools
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#131
Originally Posted by Berserk View Post
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()
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...
__________________
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
 
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#132
Oh I'm sorry, I thought it was your current question, I read it wrong

But I'd also like to know that gconf thing 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
http://ubuntuforums.org/showthread.php?t=1270124
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#133
Originally Posted by Berserk View Post
Oh I'm sorry, I thought it was your current question, I read it wrong

But I'd also like to know that gconf thing 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
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...
__________________
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
 
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#134
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?
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#135
Have you added these lines to .pro file?

Code:
CONFIG += link_pkgconfig
PKGCONFIG += gq-gconf
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#136
Originally Posted by Berserk View Post
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?
If you get it working, please share with me how to just read a gconf value. That's all I need
__________________
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
 
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#137
Originally Posted by Diph View Post
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.. ?
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations

Last edited by Berserk; 2010-09-25 at 17:56.
 
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#138
http://maemo.org/packages/view/libgq-gconf-dev/
It wouldn't install on Windows, but we're getting close
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#139
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.
 

The Following User Says Thank You to Diph For This Useful Post:
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#140
Thanks, but I don't quite understand it..
I'm using Madde on a WinXP system, so I guess that makes things different?
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations
 
Reply


 
Forum Jump


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