Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to trigger a def from a QCombobox
Forum Updated to NodeBB v4.3 + New Features

How to trigger a def from a QCombobox

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 1 Posters 238 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.
  • P Offline
    P Offline
    Penguin Powered Apps
    wrote on last edited by Penguin Powered Apps
    #1

    Hello Guys

    I want to trigger a def from QCombobox when the item is clicked or changed. Such as searching a database table by a phrase from the QCombox. I understand buttons etc but this got me foxed.

    Thanks for any help

    Simon

    P 1 Reply Last reply
    0
    • P Penguin Powered Apps

      Hello Guys

      I want to trigger a def from QCombobox when the item is clicked or changed. Such as searching a database table by a phrase from the QCombox. I understand buttons etc but this got me foxed.

      Thanks for any help

      Simon

      P Offline
      P Offline
      Penguin Powered Apps
      wrote on last edited by
      #2

      @Penguin-Powered-Apps

      I think i may be right in thinking that this should get the job done

      combobox.currentIndexChanged.connect(doSomething)

      Thanks

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved