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. Problem QProgressBar under QMainWidow and Qdialog
Forum Updated to NodeBB v4.3 + New Features

Problem QProgressBar under QMainWidow and Qdialog

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 723 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
    maroquino
    wrote on last edited by
    #1

    Hello,

    I would like to know if it is possible to update a QMainWindow that is working behind a Qdialog?

    Thanks,

    Maroquino

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

      Just to update the MainWindow, yes, off course it is. Even when the Dialog is modal (blocking inputs to the MainWindow) the mainwindow itself still runs it's event loop. So updates to GUI elements are still shown. You probably want to update the mainwindow from the dialog?? If so, you might need to use the parent pointer, but then still ui (from designer) elements are not accessible (KEEP IT THAT WAY!!). You need to have "set" function to call in which you may set new ui values.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maroquino
        wrote on last edited by
        #3

        Hello,

        Thank you for having answered quickly. And I found my problem, I had to put a repaint() to update my window. I wanted to update the progressbar gradually before the QDialog opened.

        Regards!

        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