Comment out dialog.run() (and dialog.destroy() if you have it) and see if it works with show_all. I have a feeling it won't, however - it requires the GTK main loop to be running (dunno if Qt plays nice with it, though; so it may work). That said, creating a GTK dialog does seem a little convoluted Why not just do what SiB does and create a progress bar in a Qt dialog?