Qt-interest Archive, March 2007
Image manipulation in Qt Designer
Message 1 in thread
Hello,
I am using Qt 3.3.2. I have designed a GUI using the Designer tool. I want to display an image on top of a text label. Logically, I want to bring the bitmap to front and the label on the background.
Currently, though I am able to manipulate with images, but I am not able to display an image on top of a text label. What I want to do is:
I want to display a pixmap image on top of a black background. So, what I did was I created a textlabel and gave it a black background color in the Designer. But as this is opaque, so if I display any image dynamically (say, in response to a button click), the image is not visible and is covered by the textlabel.
How can I display images on top of a black background? Do I have to create any other control for this purpose?
Please help.
Thank you,
Pankaj.
Message 2 in thread
Hi,
> I am using Qt 3.3.2. I have designed a GUI using the Designer tool. I
> want to display an image on top of a text label. Logically, I want to
> bring the bitmap to front and the label on the background.
I'm not sure I understand what you mean by "display an image on top of a
text label". Should the text be hidden by the image? Should the text be
written on top of the image?
--
[ signature omitted ]
Message 3 in thread
Hi,
> The text label is empty. There is no text. It is only meant to give a black
> background on top of which I want to display the pixmap. But as the black
> text label is opaque, I am not able to display any pixmap images on top of
> it.
How do you display the pixmap? QLabel::setPixmap()? Maybe showing some
code would help.
--
[ signature omitted ]
Message 4 in thread
Hi,
The text label is empty. There is no text. It is only meant to give a black
background on top of which I want to display the pixmap. But as the black
text label is opaque, I am not able to display any pixmap images on top of
it.
How can I create a black area on my form (created using Qt Designer) and
display pixmap images on top of it? Is there any other way apart from using
a label?
Thanks.
Pankaj.
----- Original Message -----
From: "Dimitri" <dimitri@xxxxxxxxxxxxx>
To: <qt-interest@xxxxxxxxxxxxx>
Sent: Friday, March 23, 2007 12:28 PM
Subject: Re: Image manipulation in Qt Designer
> Hi,
>
> > I am using Qt 3.3.2. I have designed a GUI using the Designer tool. I
> > want to display an image on top of a text label. Logically, I want to
> > bring the bitmap to front and the label on the background.
>
> I'm not sure I understand what you mean by "display an image on top of a
> text label". Should the text be hidden by the image? Should the text be
> written on top of the image?
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]