[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QTableWidget vs. QTableView
From:       "bastian salmela" <basse () kulma ! org>
Date:       2006-06-21 9:31:54
Message-ID: 20060621093155.78124.qmail () nuoli ! com
[Download RAW message or body]


yes, that works, but I am using this a bit differently.
I am using designer to do the interface, and I have frame promoted to 
customwidget. and then I use uic.loadUiType() to load up the .ui file on my 
main program.
the code i showed you, is the custom widget .py file, and for some reason, 
if i use QTableWidget, i get blank, but as soon as i use QTableView it 
shows. 

.b 

> ------------------------------
> From: Andreas Pakulat <apaku@gmx.de>
> The following code works perfectly here: 
> 
>>>> from PyQt4.QtGui import QApplication,QTableWidget
>>>> import sys
>>>> class mytable(QTableWidget):
> ...   def __init__(self, parent=None):
> ...     QTableWidget.__init__(self, parent)
> ...     self.setRowCount(8)
> ...     self.setColumnCount(2)
> ...
>>>> app=QApplication(sys.argv)
>>>> t=mytable()
>>>> t.show()
>>>> app.exec_()
> 
> Shows a table with 2 columns and 8 rows. I think the error is somewhere
> else in the rest of your code... 
> 
> Andreas 
> 
> -- 
> You will be surprised by a loud noise.
 

kulma.org -- the works 


_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic