Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create Settings Page Problem....
Forum Updated to NodeBB v4.3 + New Features

Create Settings Page Problem....

Scheduled Pinned Locked Moved Unsolved General and Desktop
settingspageproblem
4 Posts 3 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M4RZB4NiM Offline
    M4RZB4NiM Offline
    M4RZB4Ni
    wrote on last edited by
    #1

    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?

    Thanks
    M4RZB4Ni

    the_T 1 Reply Last reply
    0
    • M4RZB4NiM M4RZB4Ni

      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?

      the_T Offline
      the_T Offline
      the_
      wrote on last edited by
      #2

      @M4RZB4Ni

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

      -- No support in PM --

      M4RZB4NiM 1 Reply Last reply
      0
      • the_T the_

        @M4RZB4Ni

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

        M4RZB4NiM Offline
        M4RZB4NiM Offline
        M4RZB4Ni
        wrote on last edited by
        #3

        @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?

        Thanks
        M4RZB4Ni

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

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

          Why not use the widget you created with it ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved