Re: [Interest] How can i manipulate pixel data from a QWidget?

2012-09-22 Thread Christoph Feck
On Saturday 22 September 2012 21:25:42 Mark wrote: > I could really use some way to get the widget pixel data... If you really want to _get_ the pixels of a widget, you need to grab it using QPixmap::grabWidget() and convert it to a QImage. Note that this is very much slower than keeping an QIma

Re: [Interest] How can i manipulate pixel data from a QWidget?

2012-09-22 Thread Mark
On Sat, Sep 22, 2012 at 9:41 PM, Giuseppe D'Angelo wrote: > On 22 September 2012 20:00, Mark wrote: >> >> I want to play with a high performance line drawing algorithm [1] so i >> guess it's not very optimal to do the following: >> - draw in a QImage >> - put that image in the qwidget >> - furthe

Re: [Interest] How can i manipulate pixel data from a QWidget?

2012-09-22 Thread Giuseppe D'Angelo
On 22 September 2012 20:00, Mark wrote: > > I want to play with a high performance line drawing algorithm [1] so i > guess it's not very optimal to do the following: > - draw in a QImage > - put that image in the qwidget > - further drawing in the QImage > - put it on the QWidget again > - ... and

Re: [Interest] How can i manipulate pixel data from a QWidget?

2012-09-22 Thread Harri Pasanen
On 09/22/2012 09:25 PM, Mark wrote: > On Sat, Sep 22, 2012 at 9:15 PM, Josiah Bryan wrote: >> Subclass QWidget::paintEvent(QPaintEvent*) >> (http://doc.qt.digia.com/4.6/qwidget.html#paintEvent) and do your own >> painting of the widget. See the Analog Clock example >> (http://doc.qt.digia.com/4.7-

Re: [Interest] How can i manipulate pixel data from a QWidget?

2012-09-22 Thread Mark
On Sat, Sep 22, 2012 at 9:15 PM, Josiah Bryan wrote: > Subclass QWidget::paintEvent(QPaintEvent*) > (http://doc.qt.digia.com/4.6/qwidget.html#paintEvent) and do your own > painting of the widget. See the Analog Clock example > (http://doc.qt.digia.com/4.7-snapshot/widgets-analogclock.html) for an

Re: [Interest] How can i manipulate pixel data from a QWidget?

2012-09-22 Thread Josiah Bryan
Subclass QWidget::paintEvent(QPaintEvent*) ( http://doc.qt.digia.com/4.6/qwidget.html#paintEvent) and do your own painting of the widget. See the Analog Clock example ( http://doc.qt.digia.com/4.7-snapshot/widgets-analogclock.html) for an example on how to draw the contents of the widget. If you'r

[Interest] How can i manipulate pixel data from a QWidget?

2012-09-22 Thread Mark
Hi, I know one can manipulate pixel data in a QImage using the bits() function, but how can i do the same for a QWidget? I want to play with a high performance line drawing algorithm [1] so i guess it's not very optimal to do the following: - draw in a QImage - put that image in the qwidget - furt

[Interest] Qt, QML, GraphicsSystem and display orientation

2012-09-22 Thread Harri Pasanen
Hi, I observed a strange bug with raster graphics system. Using that, and setting the screen orientation to landscape does not work. In 4.7.4 it worked, if I started the the application in landscape. If started in portrait, the UI appeared in landscape in 360x360 box. With the latest 4.8.0