Qt-interest Archive, April 2007
QtGraphicsview
Message 1 in thread
Hi Folks,
I am trying to put a graphics view onto a widget and its not working :(.
This is what I do :-
QGraphicsScene *scene = new QGraphicsScene ;
scene->addText("Hello, world!");
QGraphicsView *view = new QGraphicsView(scene, widget);
view->show();
Basically I want to put that graphics view onto the widget instead of
the mainwindow.
The above code dosent work. What wrong am I doing here ?
I am very new to QT programming so apology if its too basic a question.
Thnx
Prateek.
Message 2 in thread
On 02.04.07 16:39:32, Prateek Tiwari wrote:
> QGraphicsScene *scene = new QGraphicsScene ;
> scene->addText("Hello, world!");
> QGraphicsView *view = new QGraphicsView(scene, widget);
> view->show();
>
> Basically I want to put that graphics view onto the widget instead of
> the mainwindow.
Please provide a complete compilable example, your above snippet is
correct as far as I can see, so I guess the problem is somewhere else in
your code.
Andreas
--
[ signature omitted ]
Message 3 in thread
Andreas Pakulat wrote:
> You are number 6! ÂWho is number one?
That WOULD be telling... YOU are, number 6!
--
[ signature omitted ]
Message 4 in thread
On 4/2/07, Andreas Pakulat <apaku@xxxxxx> wrote:
> You are number 6! Who is number one?
I am not a number. I am a free man ...
--
[ signature omitted ]
Message 5 in thread
Marius Roets schrieb:
> I am not a number. I am a free man ...
That's what *you* think...
SCNR ;-)
Martin
--
[ signature omitted ]
Message 6 in thread
Wht all these mails are abt?
Is this mailing list is for all this?
Thanks & Regards
Shuchi Agrawal
__________________Honeywell
Honeywell Technology Solutions
-----Original Message-----
From: Martin Gebert [mailto:Martin.Gebert@xxxxxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, April 03, 2007 2:54 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: QtGraphicsview
Marius Roets schrieb:
> I am not a number. I am a free man ...
That's what *you* think...
SCNR ;-)
Martin
--
[ signature omitted ]