Create Settings Page Problem....



  • Hi,
    I want to create settings page that user in this page can
    disable or enable objects of Other page like PushButtons,LineEdits and etc.
    how can i access to objects of other Ui?
    i wrote these codes but my problem has crashed with stopped working message!

    Ui_otherPage *ui2=new Ui_otherPage;
    ui2->comboBox_2->setDisabled(true);
    

    i used signals & slots but in that
    Condition Also my app has crashed!

    can you write a simple true code for me?



  • @M4RZB4Ni

    Can you provide a bit more code and error messages/debug output?



  • @the_
    i included otherpage.h and ui_otherpage.h in header of my first page
    then i wrote those codes in the clicked slot button
    when i clicked on button my app show stopped working and in output write:

    The program has unexpectedly finished.

    how can i do this?


  • Lifetime Qt Champion

    Hi,

    Looks like you are trying to use a Ui_otherPage without setting it up.

    Why not use the widget you created with it ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.