python


Python+PyQt4, QGraphicsScene too small


i want to create a QGraphicsScene and show it in a QGraphicsView. The problem is that my scene is a very small line (2mm-length) ) so i only see pixels in the QGraphicsView-Widget. Is there a way to change the size of the scene so it fits perfect in the GraphicsView-Widget(which has a static size).
I have found the answer:
self.graphicsView=QGraphicsView()
self.graphicsView.scale(100.0,100.0)
Now I can see small objects in my graphicsView.

Related Links

Pandas custom date interval/frequency
For loop or while loop?
Is there a way to broadcast a message to all (or filtered) WebSocket clients connected to a WebSocket server? [duplicate]
Delete Python module from disk after import while keeping it available in memory?
Create with imshow the same plot as pcolormesh [duplicate]
realitive import inside zipimport python
Google App Engine unable to find dev_appserver.py
reading last line of txt file in python and change it into variable to make calculation
What is the best way to merge multiple dictionaries?
Python 2.7: When importing into dataframe, I get IO error 'file does not exist', even when I provide absolute path
sphinx documentation: split a python source into sections, using autodoc
Installing dependencies of debian/control file
Why does Python's SysLogHandler require an address?
How to convert a .pptx to .pdf using Python
Combining two dictionaries by merging its values in a sorted list
SSH to a server and exit Python script (in the same shell)

Categories

HOME
dotnetrdf
batch-processing
crate
angular-cli
angular2-routing
cpu-architecture
computer-vision
couchdb-2.0
sbt-assembly
is-empty
recyclerview
propertygrid
adsense
ext.net
jpanel
schemacrawler
codeblocks
constructor
height
ssr
finite-group-theory
uicollectionview
session-timeout
jpeg2000
jogl
kadanes-algorithm
jconsole
google-ima
apple-tv
jquery-waypoints
yosys
rhmap
metadata-extractor
upnp
classpath
websauna
piecewise
android-vpn-service
clockwork
exponential
pyscripter
spreedly
data-extraction
ocs
qtablewidget
threshold
jquery-cycle2
issue-tracking
magiczoomplus
vcf
lirc
tableau-server
azure-availability-set
jags
ti-basic
gauss
broadcast
multi-agent
instruction-set
rxvt
festival
emgu
wcf-ria-services
multiple-file-upload
jackson-databind
financial
group-concat
qt-linguist
portfolio
license-key
plone-3.x
jta
uialertview
textkit
mptcp
rx-groovy
findcontrol
web-component-tester
scrollspy
android-search
ejabberd-saas
chaining
c++-actor-framework
qtestlib
cg
firebug-lite
httpcontext
lumx
dbsetup
resource-files
svcutil.exe
dynamic-proxy
confusion-matrix
threadx
multiple-conditions
dwolla
fieldset
template-haskell
dropdownlistfor
returnurl
usn
radchart
getstring
surf
smooth
search-path
nagle
nvelocity
svn-hooks
msn
gwt-2.2-celltable
chdatastructures
plinq
web-statistics
kpi
system-codedom-compiler
rd

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App