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 to simulate returnPressed signal from a QSpinBox
QtWS25 Last Chance

how to simulate returnPressed signal from a QSpinBox

Scheduled Pinned Locked Moved General and Desktop
qspinboxsignal
2 Posts 2 Posters 1.8k 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.
  • K Offline
    K Offline
    kroman
    wrote on 4 Apr 2015, 13:23 last edited by
    #1

    You can simply emit signal from another object. E.g. you have pointer to QSpinBox object named spinBox:

    emit spinBox->returnPressed();

    K 1 Reply Last reply 4 Apr 2015, 17:09
    0
    • K kroman
      4 Apr 2015, 13:23

      You can simply emit signal from another object. E.g. you have pointer to QSpinBox object named spinBox:

      emit spinBox->returnPressed();

      K Offline
      K Offline
      koahnig
      wrote on 4 Apr 2015, 17:09 last edited by koahnig 4 Apr 2015, 17:16
      #2

      @kroman
      Typically you can call the slots that signal is connected to as long as the slot routines are not private.

      [edit:koahnig] should checked before.
      in the description of signals and slots , you can find:
      #Signals

      Signals are emitted by an object when its internal state has changed in some way that might be interesting to the object's client or owner. Signals are public access functions and can be emitted from anywhere, but we recommend to only emit them from the class that defines the signal and its subclasses.*

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0

      2/2

      4 Apr 2015, 17:09

      • Login

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