[PyQt] Graphics items arrangement (QGraphicsView, QGraphicsLinearLayout)

Alfredo Junior junixrj at yahoo.com
Wed May 14 19:32:30 BST 2014


Hello guys,

My attempt: http://dpaste.com/04QSWQQ/



But is not work correctly.

Some tip?
On Wednesday, May 14, 2014 2:29 PM, Alfredo Junior <junixrj at yahoo.com> wrote:
 
Thank you guys.

I'll try and brb with news.
On Wednesday, May 14, 2014 2:09 PM, Eric Jardim <ericjardim at gmail.com> wrote:
 
Consider this one:
https://qt.gitorious.org/qt/qt-aleksi/source/7aacb8b3ff5c4c998298207b355b9c301d736d34:examples/graphicsview/flowlayout


2014-05-14 14:07 GMT-03:00 Eric Jardim <ericjardim at gmail.com>:
> Hmm... just ignore my last email (it is for widget layout only, not
> QGraphics). Consider reimplementing the example in the first email.
>
> Regards,
>
> 2014-05-14 14:00 GMT-03:00 Eric Jardim <ericjardim at gmail.com>:
>> As I said, there IS a Python implementation in fact =D
>>
>> https://qt.gitorious.org/pyside/pyside-examples/source/060dca8e4b82f301dfb33a7182767eaf8ad3d024:examples/layouts/flowlayout.py
>>
>> Just copy and paste the FlowLayout class into your project and be happy!
>>
>> Regards,
>>
>> 2014-05-14 13:58 GMT-03:00 Eric Jardim <ericjardim at gmail.com>:
>>> Hi Alfredo,
>>>
>>> The layout you want is the "flow layout" that combines horizontal and
>>> vertical (like a wordwrap feature, but for widgets).
>>>
>>> Unfortunately, it is not implemented and you must create your own
>>> layout manager, but you can use this example for guidance:
>>> http://doc.qt.digia.com/4.6/layouts-flowlayout.html
>>>
>>> There is probably a Python implementation somewhere.
>>>
>>> Regards,
>>>
>>>
>>>
>>>
>>> 2014-05-13 20:23 GMT-03:00 Alfredo Junior <junixrj at yahoo.com>:
>>>> Hi there,
>>>>
>>>> I'm trying to create
 something this:
>>>> http://storage9.static.itmages.com/i/14/0513/h_1400022712_1668064_2891312c36.png
>>>>
>>>> But, my result is this:
>>>> http://storage7.static.itmages.com/i/14/0513/h_1400022672_5540447_340b5f67e8.png
>>>>
>>>> My code: dpaste: 3KHNWBX
>>>>
>>>> Some tip?
>>>>
>>>> BR,
>>>>
>>>> Junix
>>>>
>>>>
 _______________________________________________
>>>> PyQt mailing list    PyQt at riverbankcomputing.com
>>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140514/6cb8cc16/attachment.html>


More information about the PyQt mailing list