Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. exec
    Log in to post

    • UNSOLVED QDialog: Reasons for avoiding exec()?
      General and Desktop • qdialog exec • • CJha  

      3
      0
      Votes
      3
      Posts
      125
      Views

      The best summary is probably still https://www.qt.io/blog/2010/02/23/unpredictable-exec - wow, 12 years ago! I'm getting old ;) From my own experience, QDialog::exec() is usually fine, especially for modal dialogs. But the exact interactions depends a lot on all the other things you're doing in your app ...
    • SOLVED Timer in worker object running on separate thread
      General and Desktop • qthread thread event loop exec • • chme  

      4
      0
      Votes
      4
      Posts
      434
      Views

      @jsulm: Thank you for your reply. The part I missed is "The default implementation simply calls exec()." @J.Hilk: Thank you for the great set of examples. IMHO, this should be placed in the QThread Class Documentation.
    • SOLVED Context menu QMenu not showing up when using popup(). Only showing on exec().
      General and Desktop • qmenu exec context menu popup • • dante77  

      3
      0
      Votes
      3
      Posts
      904
      Views

      Thank you @SGaist ! I figured it was something along those lines but couldn't put my finger on it.
    • UNSOLVED QSqlquery exec timeout
      General and Desktop • qsqldatabase qsqlquery qt 5.12 exec timeout • • BartoszPaj  

      5
      0
      Votes
      5
      Posts
      625
      Views

      Process still block, when I lost connection.
    • UNSOLVED why QDrag->exec() is crashing on MAC but not on windows version?
      General and Desktop • c++ drag and drop drag&drop exec dragleaveevent • • Yash001  

      8
      0
      Votes
      8
      Posts
      723
      Views

      Hi @Sebastien-Leon and welcome to devnet, Can you post the link to the bug report / gerrit review you made ?
    • SOLVED Subclassed QDialog, exec() calls after the first one, don't raise the dialog!
      General and Desktop • qdialog exec raise • • enjoysmath  

      3
      0
      Votes
      3
      Posts
      523
      Views

      @enjoysmath I wouldn't expect to need to use that, and would have thought it could lead to other problems. A dialog should be on top anyway. Did you try just passing the main window as the parent?
    • SOLVED Automatize QDialog actions
      General and Desktop • exec key event automation • • danividanivi  

      7
      0
      Votes
      7
      Posts
      1525
      Views

      @danividanivi Ok super. To sleep good at night, i think i would check that correct widget have focus before sending enter to avoid some day it might find the close dialog button or something later on :)
    • SOLVED Executing second window causes program to get stuck
      General and Desktop • window qt 5.6.0 exec ui object pass qobject • • oblivioncth  

      16
      0
      Votes
      16
      Posts
      4508
      Views

      @oblivioncth said: Ok, its shaping up , super :) "Helps givez me codes". We do help those too but good questions often get better answers. Also its clear that you do try to fix it first yourself, so some holes in c++ is no issue. Cheers
    • SOLVED Understanding QMessagebox .exec() and .show()
      General and Desktop • exec show qmessagebox • • roseicollis  

      5
      0
      Votes
      5
      Posts
      14171
      Views

      @Chris-Kawa said: QThread docs Oh!! Then I need to make a worker class and do something like: thread = new QThread(); thread->start(); worker = new Worker; worker->moveToThread(thread); // this is the initialization of a QWizardPage in the QWizard WizardPageClass1 *page1 = new WizardPageClass1 ; page1->setWorker(worker); And then where I have the lengthy operation, emit a signal (DoOperation for example) and in its constructor make a connect like connect(this, DoOperation(), worker, doWork()) if doWork() is where I have the lenghty operation with?
    • To run the executable created using Qt, without Qt creator
      India • exec exe • • Divya Subramanian  

      7
      0
      Votes
      7
      Posts
      4105
      Views

      You have to place the respective libraries and plugins in corresponding place where the executable is placed. And the libraries and plugins must be refering to executables.
    • [SOLVED] closeEvent question
      General and Desktop • exec closeevent • • lukeQt  

      3
      0
      Votes
      3
      Posts
      1325
      Views

      My understanding of self.close() got the better of me. self.close() returns self.reject(). That was what I did not understand. self.done(1) would also work, but I think self.accept() is clearer in this case. Thank you QT-static-prgm.
    • SOLVED Can't execute new UI or setModel.
      General and Desktop • exec setmodel • • Brownies  

      13
      0
      Votes
      13
      Posts
      7445
      Views

      @Chris-Kawa Oh wow. I didn't even know about that! Thanks! :D