Is it possible to define the style of the selection marquee when a QGraphicsItem is set selectd via setSelected(true)?
相关问题
- QTextEdit.find() doesn't work in Python
- QT Layouts, how to make widgets in horizontal layo
- How to know that a file was opened ? QT
- how do I specify in qmake 4.5's .pro file that
- Problems Installing Qt SDK on Mac OS X Lion
相关文章
- How to set the font size of the label on pushbutto
- About using an undocumented class in Qt
- Qt - setupUi( ) [duplicate]
- In Qt, how do I align form elements in different g
- how to use QT graphic view for drawing
- How to create a vcproj with qmake such that its fi
- Prepend/Append Makefile to a Qt generated Makefile
- Microsoft Visual Studio: Loading resources in Qt a
Technically no.
After a quick look into Qt's source code, it seems that the standard item types QGraphics*Item have the dashed outline as a default behavior. You can work around this by subclassing your own QGraphicsItem.
I guess you can not change the "style". This seems to be a very static feature of the standard QGraphicsItems.
Hope that helps!
There's a good solution at:
http://www.qtcentre.org/threads/15089-QGraphicsView-change-selected-rectangle-style