Alignment Issue in QStatusbar

Tong Zhang <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CABUYRu56NUb0whjb4jnrgeEvoz5oar1gw20=Zj7UvS_GBFWJuw@mail.gmail.com>
Hello,

I'm trying to create add widgets into QStatusbar, as the attached
screenshot shows, the first widget, which is a qtoolbutton and the second
widget, which is a qlabel, is not aligned well. I want them vertically
center aligned,  could somebody give me some hint? Thanks very much!
[image: Selection_001.png]

And this is the code I'm using now:
...
sb = QStatusBar(self)
btn = QToolButton(self)
...
lbl = QLabel("My App (Version: 1.0)")
lbl.setAlignment(Qt.AlignLeft)
...
sb.addPermanentWidget(btn, 0)
sb.addPermanentWidget(lbl, 1)
...
self.setStatusBar(sb)

- Tong

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Selection_001.png (image/png, 2.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.