I had connections and the buttons work fine if they are not inside the QGroupBox. Once inside the QGroupBox, they no longer work because Designer does not generate code to add them to the layout, and to set the QGroupBox's layout. Instead, I have to do the following manually:
speedHorizontalLayout->addWidget(speed1PushButton);
speedGroupBox->setLayout(speedHorizontalLayout);
I can certainly do this for all the group boxes I'm using, but it's tedious and something for which I'd hope to get some help from Designer to increase my productivity.
So the question is: Should Designer be generating this code for me, or do I have to do it manually? If Designer should be generating this code, could there be something in the objects' properties that needs to be set differently?
Thanks,
Martin





Reply With Quote
Bookmarks