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....
QtWS25 Last Chance

Create Settings Page Problem....

Scheduled Pinned Locked Moved Unsolved General and Desktop
settingspageproblem
4 Posts 3 Posters 1.6k Views
  • 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.
  • M Offline
    M Offline
    M4RZB4Ni
    wrote on 6 May 2016, 15:17 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

    T 1 Reply Last reply 6 May 2016, 15:23
    0
    • M M4RZB4Ni
      6 May 2016, 15:17

      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?

      T Offline
      T Offline
      the_
      wrote on 6 May 2016, 15:23 last edited by
      #2

      @M4RZB4Ni

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

      -- No support in PM --

      M 1 Reply Last reply 6 May 2016, 15:47
      0
      • T the_
        6 May 2016, 15:23

        @M4RZB4Ni

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

        M Offline
        M Offline
        M4RZB4Ni
        wrote on 6 May 2016, 15:47 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 May 2016, 21:52 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

          2/4

          6 May 2016, 15:23

          • Login

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