•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 391,709 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,403 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:
Views: 117 | Replies: 0
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
--------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
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() Last edited by Tekmaven : 28 Days Ago at 2:00 am. Reason: Code tags
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
Other Threads in the Python Forum
- Previous Thread: Creating EXCEL file using Python Script
- Next Thread: word game help


Linear Mode