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. QFileDialog - stopping it updating (i.e. enabling) its own button
Forum Updated to NodeBB v4.3 + New Features

QFileDialog - stopping it updating (i.e. enabling) its own button

Scheduled Pinned Locked Moved General and Desktop
qfiledialog
1 Posts 1 Posters 650 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.
  • M Offline
    M Offline
    Moschops
    wrote on last edited by
    #1

    I've got a QFileDialog, embedded in a QDialog with some other controls.

    I want the QFileDialog selected button (i.e. the one that they push when they've selected the right directory) to only be enabled when some conditions are met, based on the state of the other controls.

    So I've connected a checking function up to the QFileDialog's signal, like this:

    connect(fileDialog, SIGNAL(currentChanged(QString)), this, SLOT(updateButtonState(QString)));

    and each time the user selects a directory, the updateButtonState slot is called and I can see the button being enabled or disabled correctly.

    However, right after that, the button is enabled. Something else (inside the QFileDialog, I suspect) is being run after my slot, and setting the button enabled.

    Does anyone know what that might be, and is there a way I can turn it off?

    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