Results 1 to 4 of 4

Thread: dialog requires two button clicks to activate a search

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,324
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: dialog requires two button clicks to activate a search

    Moreover, as your code now stands, each time you click the button, it will add a new connection to startSearchRequest(). So the first time you click the button, nothing happens (as you observe) except that your code now makes a connection to the slot you actually want to execute. The second time you click the button both slots get executed, so not only does your search start, you also add another connection via the original on_btnSearchDialog_clicked() slot. So the third time you click the button, you now get two searches started plus you'll add yet another connection to the search slot. On the fourth click, three searches start, you add another connection... you see how it goes.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. #2
    Join Date
    Jun 2016
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: dialog requires two button clicks to activate a search

    Thanks for the replies and information, I am now implementing separately.

Similar Threads

  1. Replies: 7
    Last Post: 17th March 2020, 12:13
  2. button activate
    By askatuak in forum Qt Quick
    Replies: 1
    Last Post: 27th September 2013, 08:54
  3. Replies: 2
    Last Post: 26th April 2011, 11:44
  4. Replies: 2
    Last Post: 31st July 2009, 20:30
  5. How to make Search Dialog as it is used by MAC O.S
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 24th June 2008, 09:46

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.