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. How can I edit signals and slots in design mode?

How can I edit signals and slots in design mode?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 636 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.
  • B Offline
    B Offline
    buon43
    wrote on last edited by
    #1

    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
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      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
      0

      • Login

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