Is still not possible to use composition with a QPixmap in Qt 4..5.3 under windows?
Only QImage?
If not when it will be possible?
Best Regards,
Franco
Printable View
Is still not possible to use composition with a QPixmap in Qt 4..5.3 under windows?
Only QImage?
If not when it will be possible?
Best Regards,
Franco
Did you try it?
Maybe you should try it?
Composition is about painting, not selecting things. For painting the selection you can use QPainter::CompositionMode_Xor if you want (or any other composition actually).Quote:
How can I select a region over a Pixmap/Image using composition with the mouse
You can do it many ways. QRubberBand docs has a nice example.
dear wysota I tried to implement the rubberBand example but I always get a crash on the line
This is mainly my code:
Code:
{ if( pe->button() == Qt::LeftButton ) { pe->accept(); startSelection = pe->pos(); qDebug() << pe->pos(); if( !rb ) rb->show(); } else pe->ignore(); }
Where
are private members of my WaveWidget class.
I don't know where my code fails if I exactly copied the code of the doc.
If I comment the setGeometry now it craches on the show method.
Do you have an idea?
Best Regards
Did you initialize rb to 0 in the constructor?