Qt-interest Archive, June 2007
What is the fastest way to display 3 QImages in a layout ?
Message 1 in thread
Hi.
I want to display 3 QImages in a layout.
These 3 qimages will be continuously updated.
Speed is important.
What is the fastest way to do this ?
In a QFrame ? Or QWidget ? Or a other way ?
Thanks..
--
[ signature omitted ]
Message 2 in thread
hihihi wrote:
> Hi.
>
> I want to display 3 QImages in a layout.
> These 3 qimages will be continuously updated.
> Speed is important.
>
> What is the fastest way to do this ?
> In a QFrame ? Or QWidget ? Or a other way ?
>
How fast are we talking here? What is the frame rate? Will a QLabel do?
(QLabel::setPixmap).
Girish
--
[ signature omitted ]
Message 3 in thread
On Wednesday 06 June 2007 11:28, Girish Ramakrishnan wrote:
> hihihi wrote:
> > I want to display 3 QImages in a layout.
> > These 3 qimages will be continuously updated.
> > Speed is important.
> >
> > What is the fastest way to do this ?
> > In a QFrame ? Or QWidget ? Or a other way ?
>
> How fast are we talking here? What is the frame rate?
The framerate for the 3 qimages is just 10 times/second, not much.
But i want to have as much as possible cpu load left to let the prog do other
stuff.
> Will a QLabel do?
> (QLabel::setPixmap).
I do not know.
But if you think its a candidate then i will try it.
Thanks.
--
[ signature omitted ]
Message 4 in thread
hihihi wrote:
> On Wednesday 06 June 2007 11:28, Girish Ramakrishnan wrote:
>
>> hihihi wrote:
>>
>>> I want to display 3 QImages in a layout.
>>> These 3 qimages will be continuously updated.
>>> Speed is important.
>>>
>>> What is the fastest way to do this ?
>>> In a QFrame ? Or QWidget ? Or a other way ?
>>>
>> How fast are we talking here? What is the frame rate?
>>
>
> The framerate for the 3 qimages is just 10 times/second, not much.
> But i want to have as much as possible cpu load left to let the prog do other
> stuff.
>
>
Look at QGLWidget. You should be able to bind the QImage to a texture
to display it.
- Keith
--
[ signature omitted ]
Message 5 in thread
# >>> I want to display 3 QImages in a layout.
# >>> These 3 qimages will be continuously updated.
# >>> Speed is important.
# >>>
# >>> What is the fastest way to do this ?
# >>> In a QFrame ? Or QWidget ? Or a other way ?
# >>>
# >> How fast are we talking here? What is the frame rate?
# >>
# > The framerate for the 3 qimages is just 10 times/second, not much.
# > But i want to have as much as possible cpu load left to let the prog do other
# > stuff.
# >
# Look at QGLWidget. You should be able to bind the QImage to a texture
# to display it.
#
Hi,
another option is to use QGraphicsView::drawBackground() where you can
display your 3 images and trigger a repaint by updateScene() as frequently as
you want.
I do not know if it is anything close optimal but it works pretty well for me. I use
it for displaying an image sequence of 12.5 fps and have some other objects in
the scene displayed on top.
Regards,
Tomas
--
[ signature omitted ]