×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    HomeScreen Api widget using Qt4.63

    Hello, Anyone out there can share some information how can it be done ?
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  2. #2
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    95

    Re: HomeScreen Api widget using Qt4.63


  3. #3
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: HomeScreen Api widget using Qt4.63

    thanks , very useful....
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    25

    Re: HomeScreen Api widget using Qt4.63

    Hi all,

    I've in the process of converting a WRT app into Qt and Qt Quick, but as it contains a homescreen widget I've hit a bit of a road-block. I've been reading the above link a lot and have also found a wrapper class to simplify the process, but I'm stuck at the point of including all the libraries and headers that are required to access the homescreen API.

    Is there something simple I've missed, or is does it require a lot of SDK installation?

    I'm using the Qt SDK 1.1 TP. I'd really appreciate some rough sample code if anyone has time (especially regarding including the libraries -- I can figure out the API from the documentation).

    Thanks,
    Nik

  5. #5
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: HomeScreen Api widget using Qt4.63

    i have followed your link and it look useful , but once integrated in my app nothing happens ...well , still trying to understand what' wrong or missed
    Anyway to compile and link i have download N97 sdk that contains include and lib as needed
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    25

    Re: HomeScreen Api widget using Qt4.63

    Could you paste the relevant areas of your .pro file? I'm not sure which code to use to include the libs.

    If I can get it to compile I can probably troubleshoot the rest. Currently I'm getting 'missing header' errors.

    Cheers,
    Nik

  7. #7
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: HomeScreen Api widget using Qt4.63

    Quote Originally Posted by nik.rolls View Post
    Could you paste the relevant areas of your .pro file? I'm not sure which code to use to include the libs.

    If I can get it to compile I can probably troubleshoot the rest. Currently I'm getting 'missing header' errors.

    Cheers,
    Nik
    Just one line in the pro
    LIBS+=-lhswidgetpublisher -lfbscli but that refer to libs not headers

    To get the above lib and headers, that are ,
    #include <hsdataobserver.h>
    #include <hswidget.h>
    #include <hswidgetpublisher.h>
    #include <hsexception.h>

    i have downloaded N97 SDK where i found all the stuff , then copied headers to epoc32/include and lib to epoc32\release\armv5\lib
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  8. #8
    Registered User
    Join Date
    Mar 2010
    Posts
    25

    Re: HomeScreen Api widget using Qt4.63

    Awesome, thanks for that. Was vaguely along the lines of what I imagined but I didn't have the experience to be sure.

    I'll post my experiences (+ or -) here.

    Cheers,
    Nik

  9. #9
    Registered User
    Join Date
    Mar 2010
    Posts
    25

    Re: HomeScreen Api widget using Qt4.63

    So I've managed to get it pretty much working using the wrapper class in the link I provided above. It's setting the widget and widget type on an N97 mini, but just not updating it with content yet which I'm working on.

    For Qt 4.7.1 I needed to edit the hsexception.h file and add 'throw()' to the end of line 66 to fix the 'looser throw specifier' error (to get it to compile on S^3 at least, not sure if that's required for S^1). I would be interested to know if this is risky or not considering the class probably doesn't handle a throw if it wasn't in the definition. Also note that try/catch statements don't seem to work when compiling for S^1 (sounds like it's incompatibility between the compiler for the N97 SDK and Qt 4.7.1's compiler) so you will have to remove that from the wrapper class above or work around it.

    Not much luck with S^3 though. I can compile it fine (without needing to remove the try/catch statement) and the application itself works without a hitch, but it doesn't populate in the 'available widgets' list. Does anyone have any suggestions, or is it a case for a WRT widget interacting with a Qt application?

  10. #10
    Registered User
    Join Date
    Feb 2009
    Posts
    40

    Re: HomeScreen Api widget using Qt4.63

    I'm also porting a WRT app to QtQuick. Are Qt/QtQuick homescreen widgets anywhere in the SDK roadmap (I'm mostly interested in Symbian^3) or am I better off continuing this SDK hacking started by guys here?

  11. #11
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: HomeScreen Api widget using Qt4.63

    read
    http://discussion.forum.nokia.com/fo...Fullscreen-App
    to know how this thread has been continued

    here also is a running Qt/HomeScreen widget demo based on Qt 4.6.3
    http://www.mobileborg.com/sis/QtHomeScreen.zip
    Hope this helps
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

Similar Threads

  1. Homescreen widget: Error occured. Widget removed
    By _yarik_ in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-02-12, 22:17
  2. E71 Homescreen Widget
    By adelbert in forum Symbian User Interface
    Replies: 1
    Last Post: 2010-07-06, 03:37
  3. Homescreen widget appearance
    By grahamhughes in forum Symbian
    Replies: 2
    Last Post: 2010-03-20, 16:01
  4. homescreen widget publishing
    By gavrix in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-08-25, 08:55
  5. Replies: 1
    Last Post: 2009-08-06, 04:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×