[Qt-interest] QAction Bug on a Mac?
Ben Swerts
benswerts at telenet.be
Sat May 9 12:50:06 CEST 2009
> Hello i have tried to make a simple Qt Application using QAction but it
> tottaly doesn't work.Can any explain me if i it is a bug or if am doing
> anything wrong?Here is my code!
Hi Stefanos,
'totally doesn't work' isn't very specific. If it doesn't compile, post the
compiler error. If it doesn't react the way you expect, at laest tell us
what you expect.
On first glance the code below should at least compile.
> [code]
> void ActionWidget::onCheckButtonClicked()
> {
> ui->checkButton->setEnabled(true);
> }
> [\code]
setEnabled shows the button in an enabled state (not grayed out) which is
the state it probably already has. If you want to check it use setChecked.
Greets,
Ben
More information about the Qt-interest-old
mailing list