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. QlineEdit with selectionChanged()
Forum Updated to NodeBB v4.3 + New Features

QlineEdit with selectionChanged()

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.5k Views 1 Watching
  • 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
    Massinissa
    wrote on last edited by
    #1

    Hi
    I'm wondering if someone can help me with this problem in QDesigner, I tried to connect a signal (selectionChanged()) for an EditLine calling a function that can open a QFileDialog. It has been done already under a project using QDialog form but when it comes for a new project with MainMenu as a form type, it does nothing it can't even enter in the called function. I didn't code the signal but I added it in the Signal/Slot Editor.
    Do I need to do something else under MainMenu?
    Thank you for your help!

    Massi

    Massinissa Bandou Ing.jr

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi,

      It's hard to say without seeing the code. Does the debug version print something as debug message? This typically happens if a signal/slot connect call fails (which could be a reason).
      Did you implement the slot? Did you implement it in the correct class? Did you call connect or setupUI?

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • JeroentjehomeJ Offline
        JeroentjehomeJ Offline
        Jeroentjehome
        wrote on last edited by
        #3

        Hi, usually when a slot isn't called it is because the connect wasn't correct. In QDesigner you are able the check the signal/slot editor. Might want to debug it with just a simple lineedit update next to it. If that works, the signal is issued. After that make sure you are able to call the desired slot (maybe private member of a different class?)
        good luck, but as Gerolf says, we can't do much without code.

        Greetz, Jeroen

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Massinissa
          wrote on last edited by
          #4

          Thank you it works!!!! sorry it's my fault, public slot: instead of public: in my .h even if you added the functions manually by right clicking on the form and selecting change signals/slots:
          thank you for your help!
          Massi

          Massinissa Bandou Ing.jr

          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