QPushButton Behavior
I'm just learning the Daz SDK and also QtGui. I've created lots of widgets successfully and even have successfully connected to a widget signal for event handling, but no luck with QPushButton. I've tried both the released signal and the clicked signal and neither seems to get called when I click on the button. In addition, the button itself, while it appears to be enabled and active, doesn't actually depress when I click it. I'm guessing this is the crux of the problem, but I don't know how to get the button to properly function.
Here are the relevant code snippets:
in class .cpp constructor:
{
m_applyButton = new QPushButton("ApplyButton");
m_layout->addWidget(m_applyButton);
connect(m_applyButton, SIGNAL(released()), this, SLOT(handleApplyButton()));
}
void DzMyPane::handleApplyButton()
{
m_applyButton->setText("Worked");
}
Comments
This seems to be working fine now on my 64 bit compile. I was trying on a 32-bit compile on a different machine and it wouldn't work. But on my primary machine as a 64 bit compile it works fine. I have no idea why the other version doesn't work. I didn't change a thing as far as code is concerned.