Important: Please read the Qt Code of Conduct -

Where is the "BrowseSlot" to connect my button with this signal ?

  • Hi all ,
    i'm on Qt Designer 5, and i just want to create a QDialog which load a document , so i need
    to connect my button "Browse" with the real signal "BrowseSlot" , but i don't see this one on the list when i try to edit.
    thanks for help

  • Lifetime Qt Champion

    @Qtzo You have to create this slot by yourself, where you then show the dialog.
    There is no "BrowseSlot" signal, you connect the clicked() signal of your button with your own slot.

    connect(ui->mybutton, &QPushButton::clicked, this, &MyClass::browseSlot);

Log in to reply