Results 1 to 1 of 1

Thread: How to connect 2 QCombobox by focus?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2020
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Unhappy How to connect 2 QCombobox by focus?

    I'm have 2 QCombobox, cbxA and cbxB.
    I'm try
    Qt Code:
    1. connect( ui->qlineedited, SIGNAL( returnPressed() ), ui->cbxA, SLOT( setFocus() ) );
    To copy to clipboard, switch view to plain text mode 
    code run OK, cbxA is focused.
    Qt Code:
    1. connect( ui->cbxA, SIGNAL( ???() ), ui->cbxB, SLOT( setFocus() ) );
    To copy to clipboard, switch view to plain text mode 
    I don't know SIGNAL after press enter in QCombobox?
    I'm try so much ex: ui->cbxA->lineEdit() but cbxA don't have QLineEdit, because don't need it,...
    How to connect QCombobox to focus it?
    Last edited by vinh; 28th November 2020 at 13:30.

Similar Threads

  1. Replies: 0
    Last Post: 17th March 2017, 09:55
  2. how to change the QComboBox focus color?
    By josentop in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2011, 17:20
  3. QComboBox - style sheet set text color non focus?
    By alan in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2011, 00:31
  4. Focus frame inside QComboBox list
    By alpinista in forum Qt Programming
    Replies: 2
    Last Post: 13th November 2009, 15:30
  5. Focus issues / Setting multiple focus
    By ComputerPhreak in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2007, 07:09

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