Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: send signal from QCombobox

  1. #21
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: send signal from QCombobox

    Quote Originally Posted by raphaelf
    Hi!
    I get new values just if i click twice..and on release the small button right from the combobox stay active (like a toogle button) until a click again ;(
    Supposedly you want to populate the combo box only once, so maybe you could remove the event filter right after receiving the first appropriate event.

    Anyhow, I have included an example of the solution I suggested earlier...
    Attached Files Attached Files

  2. The following user says thank you to jpn for this useful post:

    aekilic (2nd January 2009)

  3. #22
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: send signal from QCombobox

    Quote Originally Posted by raphaelf
    Hi,
    "QEvent::FocusIn" looks to work but i have a symptom..if i ordered my query the results are interchanged
    combo: x,f,a
    Query Analyzer: a,f,x

    "select sprache from sprache_tbl order by sprache"
    Use "order by sprache desc" in your sql statement or add items to the combo box in reverse order, see last() and previous().

  4. #23
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: send signal from QCombobox

    Hi jpn!
    Thank you very much for your spended time..I have downloaded the example an i will use "desc" for my Query..

    Thanks all for the best support!
    Think DigitalGasoline

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 08:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 08:04
  3. QComboBox activated signal: bad int value?
    By rfdutt in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2008, 00:29
  4. Can you send a signal to a thread?
    By Dumbledore in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2007, 21:31
  5. Manually send signal to slot
    By donmorr in forum Qt Programming
    Replies: 1
    Last Post: 29th May 2006, 16:03

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.