User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jul 2008
Posts: 1
Reputation: kodavalilaxmi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kodavalilaxmi kodavalilaxmi is offline Offline
Newbie Poster

how can i set scroll bar to form in Qt Designer

  #1  
28 Days Ago
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()
---------------------------------------------------------------------------------------------------------------------------------
Last edited by Tekmaven : 28 Days Ago at 2:00 am. Reason: Code tags
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Python Marketplace
Thread Tools Display Modes

Other Threads in the Python Forum

All times are GMT -4. The time now is 3:00 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC