Qt 5.3 Opensource & Creator 3.1.2
It's a programmatical technique to prevent objects from getting copied. Sometimes it makes no sense to copy an object, like a QObject or a QGraphicsItem. Both QObjects and QGraphicsItems are organized in object trees where each object has an optional parent and children. What should happen when such object is copied? Should children get copied? Should parent get copied as well? Should possible signal-slot connections get copied? What person A would expect to happen would be most likely different than person B would expect. The result would be chaotic no matter how the functionality was implemented. Therefore it's just better to prevent it from happening.
PS. Did you notice that your signature says "kUbutnu"?![]()
J-P Nurmi
Ok, jpn, I again tumbed into wall. Loaded pics are different sizes, how do I limit the size of every loaded pic to, for example, to 100x100 points?
Qt 5.3 Opensource & Creator 3.1.2
Heh, it's been buggering me for a while but I couldn't resist myself anymore..
Well, it depends a bit what you want to achieve. Both QPixmap and graphics items are scalable. See QPixmap::scaled() and QGraphicsItem::scale().
J-P Nurmi
Well, these pictures will be placed on "ghost" circle coordinates. And this is ugly if every pic has different size, so every created pixmap must be scaled to predefined size, let me try.
And, let me correct signature so you will not bothered again.![]()
Qt 5.3 Opensource & Creator 3.1.2
My name spells with a single "t". Don't mess it up, please. It's a Slavic name, so you shouldn't be making any mistakes in it.
I am very sorry if I got you insulted. It won't happen again.
Qt 5.3 Opensource & Creator 3.1.2
You didn't but I prefer my name to be spelled correctly.
I don't read signatures
About your question: use QPixmap::scaled() or QImage::scaled().
Bookmarks