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. On_toolButton_clicked() vs on_lineEdit_editingFinished()
Forum Updated to NodeBB v4.3 + New Features

On_toolButton_clicked() vs on_lineEdit_editingFinished()

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k 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.
  • P Offline
    P Offline
    peterlin82
    wrote on last edited by
    #1

    I use "Qt Creator" to create QDialog.

    I put toolButton and lineEdit on QDialog.

    I input data to lineEdit fisrt,then press toolButton.

    result
    void Dialog::on_toolButton_clicked() {......} first,
    then void Dialog::on_lineEdit_editingFinished() {......}

    but I hope
    void Dialog::on_lineEdit_editingFinished() {......} first,
    then void Dialog::on_toolButton_clicked() {......}

    How to do that?

    thanks a lot.

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

      This is a brain to keyboard, but try to make three signals! You got the first two, but make an extra one that is called "on_toolButton_pressed()". This one can emit the on_lineEdit_Finished signal making that signal before the on_toolButton_clicked().
      Good luck

      Greetz, Jeroen

      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