Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. The activated() signal is not emitted by a editable QComboBox

The activated() signal is not emitted by a editable QComboBox

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.4k 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.
  • A Offline
    A Offline
    AndersG
    wrote on last edited by
    #1

    Hi,

    I have a strange problem with the QComboBox when I set it to editable it doesn’t emit the activated() signal when the user selects an item in the ComboBox list.

    But if I change the property so that it is not editable the activated() signal is emitted.

    I’m using Qt version 4.7.1 cross-compiled for an ARM cortex A8 platform.

    But if I setup a test program on my windows machine with a ComboBox the activated() signal is emitted even if I set the ComboBox to editable.

    Does anyone know how to solve this problem?

    Thanks!

    1 Reply Last reply
    0
    • AlicemirrorA Offline
      AlicemirrorA Offline
      Alicemirror
      wrote on last edited by
      #2

      Just thinking to what you have wrote, maybe a problem of focus setting ?

      Enrico Miglino (aka Alicemirror)
      Balearic Dynamics
      Islas Baleares, Ibiza (Spain)
      www.balearicdynamics.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AndersG
        wrote on last edited by
        #3

        Thanks for your replay

        I have tested changing the focusPolicy parameter to all available policy’s but the activated() signal is not emitted for any of the settings. I get the editTextChanged() signal when scrolling between items in the ComboBox list but not the activated() after selecting an item in the list.

        But if I set the ComboBox from editable to not editable and leave all other settings as they are then the activated() signal is emitted. It seems like the activated() signal has something to do with the editable property. But as I understand it I should get both the editTextChanged() and activated() signals in editable mode, and that’s how it works under Windows.

        1 Reply Last reply
        0
        • AlicemirrorA Offline
          AlicemirrorA Offline
          Alicemirror
          wrote on last edited by
          #4

          Take a look with your code searching in qt bug. If possible post a piece of code. Instead, I have seen that there are a lot of problems in QCombo with signals and editable / non-editable conditions.

          If possible create your own signal and manage it as needed. If it works it maybe a bug.

          P.S. Why not to move to further version than 4.7.1? I know that the beta 4.7.8 has a lot of this problems solved for the version of Qt anywhere

          Enrico Miglino (aka Alicemirror)
          Balearic Dynamics
          Islas Baleares, Ibiza (Spain)
          www.balearicdynamics.com

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AndersG
            wrote on last edited by
            #5

            I performed a test yesterday where I copied the widget with the ComboBox out from our project to a new empty project and started it on our unit. For that program the activated() signal is emitted when an item is selected in the ComboBox list. It is not emitted if I reselect an already selected item as it should according to the doc but this is good enough for our needs.

            So it seems that there is something in our project which prevents the signal from being emitted. But I don't understand what that could be. Do you have any suggestions?

            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