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
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
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
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-
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
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
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
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