Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Qt homescreen widgets not working with CSSU?

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


mardy at users

May 1, 2011, 1:51 AM

Post #1 of 8 (403 views)
Permalink
Qt homescreen widgets not working with CSSU?

Hi all!
Some users running CSSU reported that my homescreen widget (written in
Qt) does not appear in their homescreen. I did a quick search on the
forums, and found that the issue affects also some other widget:
http://talk.maemo.org/showthread.php?p=998003

Does anyone have any ideas of what could be wrong? It seems that the
widget loads and works properly, but it's simply invisible.

I wonder if it could be related to some mis-handling of translucent
widgets; I sent a modified version to a user, which has translucency
disabled, and I'm waiting to hear the result.

Suppose that the widget works with that change; how can I detect at
run-time that the CSSU is installed and not enable the translucency then?
If there is some (configuration) file added by the CSSU only, I could
test for its existance.

TIA,
Alberto

--
http://blog.mardy.it <- geek in un lingua international!
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


mardy at users

May 1, 2011, 2:38 AM

Post #2 of 8 (386 views)
Permalink
Re: Qt homescreen widgets not working with CSSU? [In reply to]

On 05/01/2011 11:51 AM, Alberto Mardegan wrote:
> I wonder if it could be related to some mis-handling of translucent
> widgets; I sent a modified version to a user, which has translucency
> disabled, and I'm waiting to hear the result.

Got the result: with translucency disabled, the widget appears just as a
black square. :-(

Ciao,
Alberto

--
http://blog.mardy.it <- geek in un lingua international!
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


timur at sch

May 1, 2011, 7:06 AM

Post #3 of 8 (393 views)
Permalink
Re: Qt homescreen widgets not working with CSSU? [In reply to]

Hi Alberto,

Sticky Notes (which is also Qt-based) still works with the CSSU.
If you give me a URL to your widgets' source, I may be able to figure out what's wrong.

Cheers,
Timur
--
Sent from my Nokia N900

On Sun,  1 May 2011, 11:38:30 CEST, Alberto Mardegan <mardy [at] users> wrote:

> On 05/01/2011 11:51 AM, Alberto Mardegan wrote:
> > I wonder if it could be related to some mis-handling of translucent
> > widgets; I sent a modified version to a user, which has translucency
> > disabled, and I'm waiting to hear the result.
>
> Got the result: with translucency disabled, the widget appears just as a
> black square. :-(
>
> Ciao,
>    Alberto
>
> --
> http://blog.mardy.it <- geek in un lingua international!
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers


mardy at users

May 1, 2011, 11:44 AM

Post #4 of 8 (385 views)
Permalink
Re: Qt homescreen widgets not working with CSSU? [In reply to]

Hi Timur,

On 05/01/2011 05:06 PM, Kristóf Timur wrote:
> Hi Alberto,
>
> Sticky Notes (which is also Qt-based) still works with the CSSU.
> If you give me a URL to your widgets' source, I may be able to figure
> out what's wrong.

Thanks for your help! I had a look at sticky notes, but I see that you
are not using the "standard" qmaemo5homescreenadaptor; why?

Anyway, I'm attaching a minimal version of the source code which
exhibits the problem. You can see the text "Please configure the
widget", but the background is not painted, and the only the top window
border appears.

I noticed that if I set the Qt::WA_PaintOnScreen attribute then the
widget is fully visible, but it's not transparent and it visibly flickrs
when it's painted.

Please let me know if you have any ideas, I tried a bit of everything
but I didn't get anywhere.

Ciao,
Alberto

--
http://blog.mardy.it <- geek in un lingua international!
Attachments: testwidget.tar.gz (1.71 KB)


timur at sch

May 1, 2011, 1:14 PM

Post #5 of 8 (383 views)
Permalink
Re: Qt homescreen widgets not working with CSSU? [In reply to]

Hello Alberto,

> Thanks for your help! I had a look at sticky notes, but I see that you
> are not using the "standard" qmaemo5homescreenadaptor; why?
Because it doesn't allow for some of the features that Sticky Notes has
- for example having multiple instances of the same widget.
> Anyway, I'm attaching a minimal version of the source code which
> exhibits the problem. You can see the text "Please configure the
> widget", but the background is not painted, and the only the top window
> border appears.
I will look at it and see what I can figure out.

Note that the Community SSU packs a newer version of Qt, 4.7.2, which
hasn't been officially tested on Maemo at all.
As it turns out, the raster graphics system is totally borked on it, and
some stuff simply doesn't work on it well. This issue may be related to
the already known bugs.

Cheers,
Timur

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


mardy at users

May 1, 2011, 11:50 PM

Post #6 of 8 (380 views)
Permalink
Re: Qt homescreen widgets not working with CSSU? [In reply to]

On 05/01/2011 11:14 PM, Timur Kristóf wrote:
> Hello Alberto,
>
>> Thanks for your help! I had a look at sticky notes, but I see that you
>> are not using the "standard" qmaemo5homescreenadaptor; why?
> Because it doesn't allow for some of the features that Sticky Notes has - for
> example having multiple instances of the same widget.

It does; my widget uses it, and seems to work fine:
http://blog.mardy.it/2011/05/oculo-dynamic-web-content-to-your-n900.html

>> Anyway, I'm attaching a minimal version of the source code which
>> exhibits the problem. You can see the text "Please configure the
>> widget", but the background is not painted, and the only the top window
>> border appears.
> I will look at it and see what I can figure out.

Thanks!

> Note that the Community SSU packs a newer version of Qt, 4.7.2, which hasn't
> been officially tested on Maemo at all.
> As it turns out, the raster graphics system is totally borked on it, and some
> stuff simply doesn't work on it well. This issue may be related to the already
> known bugs.

Ah, that might be the issue then! So, unless we find a workaround, I'll probably
have to add a "Conflicts:" line to my package and not allow it to be installed
when that version of Qt is installed.

Ciao,
Alberto

--
http://blog.mardy.it <-- geek in un lingua international!
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


khertan at khertan

May 3, 2011, 1:54 AM

Post #7 of 8 (373 views)
Permalink
Re: Qt homescreen widgets not working with CSSU? [In reply to]

>Note that the Community SSU packs a newer version of Qt, 4.7.2, which hasn't been officially tested on Maemo at all.
>As it turns out, the raster graphics system is totally borked on it, and some stuff simply doesn't work on it well. This issue may be related to the already known bugs.

And any help would be welcome. I've try to track QT-BUG18720 without sucess yet.

Thx
--
Benoît HERVIER, Khertan Software - http://khertan.net/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


mardy at users

May 3, 2011, 10:49 AM

Post #8 of 8 (367 views)
Permalink
Re: Qt homescreen widgets not working with CSSU? [In reply to]

Hi Timur,

On 05/01/2011 11:14 PM, Timur Kristóf wrote:
> As it turns out, the raster graphics system is totally borked on it, and
> some stuff simply doesn't work on it well. This issue may be related to
> the already known bugs.

Your hint was extremely precious! Indeed, adding this just at the
beginning of main() does the trick:

if (qstrcmp(qVersion(), "4.7.2") == 0) {
QApplication::setGraphicsSystem("native");
syslog(LOG_DEBUG, "Using native graphicssystem");
}

Guess it's time for a new release. :-)

Ciao,
Alberto

--
http://blog.mardy.it <- geek in un lingua international!
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.