I am using python Qt Designer.
There i created for with widget. In that form i placed many textEdits nearly 15.
So form size is more than screen size, iam not able to see all textEdits.
How can i put scroll bar to this form to view total form.
--------------------------------------------------------------------------------------------------------------------------------------
Here i am sending my code also: Please help me
--------------------------------------------------------------------------------------------------------------------------------------
from qt import *
import sys
class Form1(QWidget):
def __init__(self,parent = None,name = None,fl = 0):
QWidget.__init__(self,parent,name,fl)
if not name:
self.setName("Form1")
I=0; t=10
while I<15:
self.lineEdit1 = QLineEdit(self,"lineEdit1")
self.lineEdit1.setGeometry(QRect(0,t,120,50))
self.lineEdit2 = QLineEdit(self,"lineEdit2")
self.lineEdit2.setGeometry(QRect(120,t,120,50))
self.textEdit1 = QTextEdit(self,"textEdit1")
self.textEdit1.setGeometry(QRect(240,t,700,50))
self.textEdit1.setPaletteForegroundColor(QColor(85,170,0))
t=t+50; I=I+1
if __name__ == "__main__":
app = QApplication(sys.argv)
f = Form1()
f.show()
app.setMainWidget(f)
app.exec_loop()
---------------------------------------------------------------------------------------------------------------------------------