Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How can I edit signals and slots in design mode?

    General and Desktop
    2
    2
    569
    Loading More Posts
    • 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.
    • B
      buon43 last edited by

      I have a user interface where the user can input the number of people with spinbox and then write the name for all the people. I want to have it so that when the number of people is two, it will only show two line edits. So I connect the spinbox to a line edit and I see this:

      http://i.imgur.com/dZT55km.png

      How can I edit the int in the valueChanged? I assume I can edit it with the edit button, but it's greyed out as you can see. Does it have to done in the .cc file?

      1 Reply Last reply Reply Quote 0
      • E
        Eddy last edited by

        Afaik you will need to code to achieve this.

        Have a look at "the Qsignalmapper docs":http://qt-project.org/doc/qt-5.0/qtcore/qsignalmapper.html#details

        Hope this gives you a head start.

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply Reply Quote 0
        • First post
          Last post