Min Li wrote:
Hi, everyone.
I have some trouble in QTabBar. How can I trigger some event when I change
the current tab to a new tab?
Could you please give me some suggestion?
Thanks
Lee
someconstructor:
self.tabBar = QtGui.QTabBar()
self.connect(self.tabBar, QtCore.SIGNAL("curre
Hi, everyone.
I have some trouble in QTabBar. How can I trigger some event when I change
the current tab to a new tab?
Could you please give me some suggestion?
Thanks
Lee
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomput
Thanks, that worked! I wonder why my first approach did not, since the
documentation suggests it should. Anyways, thanks for the help!
Cheers,
Bastian
Christoph Burgmer schrieb:
> Hi,
>
> Am Monday, 13. October 2008 schrieb Bastian Venthur:
>
>> how can I catch a selectionChanged signal from
Hi,
I realise there is another thread on this subject, but the
problem there seemed to be different (application of the style sheet on
changing the property rather than setting it initially). I'm trying to
use setProperty() to set a dynamic property on a QTreeWidget which I
can then use as a speci
Quoting Anil <[EMAIL PROTECTED]>:
bool QSqlRelationalTableModel::setData ( const QModelIndex & index, const
QVariant & value, int role = Qt::EditRole )
I think you should use setData(). I haven't used setModelData()
before. The usual way is like this:
- Create a new row
- Use setData() t
Hi
I have a QTableView that is showing some data from a MySQL database and I am
trying to use it to add new values to the table.
How can I preload some of the fields with available information like UserName
and date rather than asking user to enter it.
I tried to preset in
def setModelData(se
Hi,
Am Monday, 13. October 2008 schrieb Bastian Venthur:
> how can I catch a selectionChanged signal from a tableView? I tried:
>
> QtCore.QObject.connect( self.tableView,
> QtCore.SIGNAL('selectionChanged(const QItemSelection&,
> const QItemSelection&)'),
> s
Hi,
how can I catch a selectionChanged signal from a tableView? I tried:
QtCore.QObject.connect( self.tableView,
QtCore.SIGNAL('selectionChanged(const QItemSelection&,
const QItemSelection&)'),
self.selection_changed)
but selection_changed never gets called.