Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, November 2007
Transparent view with opaque scene and items


Message 1 in thread

Hi!

I have a QGraphicsView with scene and items. Is there any way to set 
transparency to that view so as items remains opaque?

Thanks in advance.
Anton I Alferov.

--
 [ signature omitted ] 

Message 2 in thread

> Hi!
>
> I have a QGraphicsView with scene and items. Is there any way to set 
> transparency to that view so as items remains opaque?
>
> Thanks in advance.
> Anton I Alferov.
>

So, no ideas?

--
 [ signature omitted ] 

Message 3 in thread

On torsdag den 29. November 2007, Anton I Alferov wrote:
> > Hi!
> >
> > I have a QGraphicsView with scene and items. Is there any way to set
> > transparency to that view so as items remains opaque?
> >
> > Thanks in advance.
> > Anton I Alferov.
>
> So, no ideas?

Two possibilities:

1) No ideas from any of us

2) We don't really understand what you're asking

I'm in 2).

Bo.

-- 
 [ signature omitted ] 

Message 4 in thread

Bo Thorsen wrote:
>
> Two possibilities:
>
> 1) No ideas from any of us
>
> 2) We don't really understand what you're asking
>
> I'm in 2).
>
> Bo.
>
>   
Ok, another example. I have a widget and push button on it. Button is 
child of widget. I want to set widget semitransparent, but button have 
to remain full opaque.

Anton I Alferov.

--
 [ signature omitted ] 

Message 5 in thread

Hi Anton, 

Since responding earlier, I have found Qt::WA_NoSystemBackground. It seems
to be what you are looking for. But I haven't tested it. Please let me know
whether it works for GraphicsView. 

Sometimes searching in assistant doesn't find anything useful. I find that
searching for the OPPOSITE can give extra hits - in this case "opaque"
instead of "transparent". 

Hope that helps, 

Tony Rietwyk


> -----Original Message-----
> From: Anton I Alferov [mailto:casper@xxxxxxxxxxxx] 
> Sent: Friday, 30 November 2007 00:44
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Re: Transparent view with opaque scene and items
> 
> 
> Bo Thorsen wrote:
> >
> > Two possibilities:
> >
> > 1) No ideas from any of us
> >
> > 2) We don't really understand what you're asking
> >
> > I'm in 2).
> >
> > Bo.
> >
> >   
> Ok, another example. I have a widget and push button on it. Button is 
> child of widget. I want to set widget semitransparent, but 
> button have 
> to remain full opaque.
> 
> Anton I Alferov.

--
 [ signature omitted ] 

Message 6 in thread

> Hi Anton, 
>
> Since responding earlier, I have found Qt::WA_NoSystemBackground. It seems
> to be what you are looking for. But I haven't tested it. Please let me know
> whether it works for GraphicsView. 
>
> Sometimes searching in assistant doesn't find anything useful. I find that
> searching for the OPPOSITE can give extra hits - in this case "opaque"
> instead of "transparent". 
>
> Hope that helps, 
>
> Tony Rietwyk
>
>
>   
Hi Tony,

Thank you for answer, but Qt::WA_NoSystemBackground not works for 
QGraphicsView - background remains white.

Anton I Alferov.

--
 [ signature omitted ]