View Full Version : Aligning message displayed on QStatusbar
sanjayshelke
20th November 2008, 07:28
Hi all,
I want to display message on QStatusBar with right alignment.
is there any way to do this?
Thanks in advance.
regards,
~Sanjay
spirit
20th November 2008, 07:41
you can try to do something like this
Test::Test(QWidget *parent)
: QMainWindow(parent)
{
QLabel *stat = new QLabel("Hello");
stat->setAlignment(Qt::AlignRight);
statusBar()->addWidget(stat, 1);
}
sanjayshelke
20th November 2008, 09:41
Hi,
Its working.
Thank u sir.
regards,
~Sanjay
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.