[Qt-interest] Can't access the elements in a promoted widget

Patric userqt at gmail.com
Wed Jul 1 17:27:18 CEST 2009


Hi all, 
I have a tab widget, and one of it's tabs is a promoted widget which I have created. I want to disable a button in the promoted widget from the main window. 

Code in main window : 
ui->MyPromotedWidget->readBtn->setDisabled(true);

But it throws erorrs : 
ui_mypromoted.h:52: error: `QPushButton*Ui_MyPromoted::sac_ReadBtn' is inaccessible

I guess it's not possible to reach my promoted widget's object directly from the main window ? I thought there would not be a problem to reach it's elements from there. What do you think ?

Best regards,  
Patric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090701/5ed780bb/attachment.html 


More information about the Qt-interest-old mailing list