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

How to read webpages that are without .htm* extension using Python?
can I use python's 'socket' module to connect to a wireless ethernet host?
Requests VS Urllib 2 [closed]
Call python class from another Python script
How can I use BeautifulSoup to get a few contents that comes after a specific text on a page?
Reinstall python 2.7.12 and python 3.5.2
How to keep chrome browser window open after selenium script finishes on python
Outlook email attachment downloader (Date range)
Create array based on conditional logic of values in other arrays in Python
Python qt - TableWidget update MySQL
Getting black plots with plt.imshow after multiplying image array by a scalar
Updating a value in a Pandas dataframe seems to update all dataframes
4 entry box nummeric keypad
os.walk for loop not executing [duplicate]
python matplotlib polar plot
Django - not showing properly one of my tables in template

Categories

HOME
puzzle
jsviews
ncurses
webrtc
visual-studio-2013
angular2-routing
memory-leaks
hana
mainframe
search-engine
vlc
vsftpd
deeplearning4j
shipping
constructor
vuex
uiactivityviewcontroller
wicket
keystore
game-maker-studio-1.4
dryioc
nuxt.js
symfony-forms
cosmicmind
lenskit
ejs
riak
off-canvas-menu
prestodb
multicore
raphael
embedly
tfs2013
rhandsontable
frp
i3
hibernate-cache
pyscripter
spreedly
modulo
large-data
zero
poco-libraries
tic-tac-toe
restful-url
sendgrid-templates
datalog
crop
startapp
ajp
fqdn
uiviewpropertyanimator
pluck
google-maps-ios
gce
cdk
selenium-firefoxdriver
unity3d-editor
tomee
rmongodb
picasa
debugdiag
slam-algorithm
cron-task
git-annex
achievements
faraday
asp.net-mvc-partialview
fill
asp.net-mvc-2
portfolio
jta
zuora
vine
multipleselection
google-earth-plugin
pl-i
ctrlp
and-operator
libssh2
outline
humanizer
healthvault
facebook-chat
bignum
modeshape
onselect
threadx
mstsc
objcmongodb
deploying
parameterization
noir
pantheios
querypath
hadoop-plugins

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