Questions tagged [qgraphicsview]

A QGraphicsView is a class from the Qt toolkit which provides a widget for displaying the contents of a QGraphicsScene.

The QGraphicsView class is part of Qt's Graphics View Framework and is used to visualize the contents of a QGraphicsScene in a scrollable viewport.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

1128 questions
-1
votes
1 answer

Strech QGraphicsView horizontally

How to add horizontal stretch feature to a QGraphicsView? Please help
indira
  • 6,569
  • 18
  • 65
  • 80
-2
votes
1 answer

How to draw QLines at startup?

I'm going to draw a QLine in a QGraphicsScene and display it via a QGraphicsView. The line is drawn during mainwindow construction, but deleted after leaving the MainWindow constructor shortly after been drawn and before reaching any slot. (I…
user7427029
  • 255
  • 2
  • 12
-3
votes
2 answers

Moving object using keyboard qt

I'm trying to move an object using my arrow keys, but when I launch the app, nothing happens. Do you have an idea on how to fix it ? @Update : my rectangle only moves once to the left and to the right, but if I use qDebug it recognizes all the…
David
  • 221
  • 3
  • 13
1 2 3
75
76