Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. exec

    Log in to post
    • All categories
    • CJha

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

      3
      0
      Votes
      3
      Posts
      562
      Views

      kkoehne

      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 ...

    • C

      Solved Timer in worker object running on separate thread
      General and Desktop • event loop qthread thread exec • • chme

      4
      0
      Votes
      4
      Posts
      1357
      Views

      C

      @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.

    • dante77

      Solved Context menu QMenu not showing up when using popup(). Only showing on exec().
      General and Desktop • qmenu context menu popup exec • • dante77

      3
      0
      Votes
      3
      Posts
      1371
      Views

      dante77

      Thank you @SGaist ! I figured it was something along those lines but couldn't put my finger on it.

    • BartoszPaj

      Unsolved QSqlquery exec timeout
      General and Desktop • qsqldatabase qsqlquery timeout exec qt 5.12 • • BartoszPaj

      5
      0
      Votes
      5
      Posts
      916
      Views

      BartoszPaj

      Process still block, when I lost connection.

    • Y

      Unsolved why QDrag->exec() is crashing on MAC but not on windows version?
      General and Desktop • drag&drop dragleaveevent drag and drop c++ exec • • Yash001

      8
      0
      Votes
      8
      Posts
      890
      Views

      SGaist

      Hi @Sebastien-Leon and welcome to devnet,

      Can you post the link to the bug report / gerrit review you made ?

    • enjoysmath

      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
      635
      Views

      JonB

      @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?

    • D

      Solved Automatize QDialog actions
      General and Desktop • automation key event exec • • danividanivi

      7
      0
      Votes
      7
      Posts
      1704
      Views

      mrjj

      @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 :)

    • oblivioncth

      Solved Executing second window causes program to get stuck
      General and Desktop • qt 5.6.0 pass qobject ui object exec window • • oblivioncth

      16
      0
      Votes
      16
      Posts
      4845
      Views

      mrjj

      @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

    • R

      Solved Understanding QMessagebox .exec() and .show()
      General and Desktop • qmessagebox show exec • • roseicollis

      5
      0
      Votes
      5
      Posts
      16243
      Views

      R

      @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?

    • D

      To run the executable created using Qt, without Qt creator
      India • exec exe • • Divya Subramanian

      7
      0
      Votes
      7
      Posts
      4301
      Views

      Pradeep Kumar

      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.

    • L

      [SOLVED] closeEvent question
      General and Desktop • closeevent exec • • lukeQt

      3
      0
      Votes
      3
      Posts
      1399
      Views

      L

      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.

    • B

      Solved Can't execute new UI or setModel.
      General and Desktop • setmodel exec • • Brownies

      13
      0
      Votes
      13
      Posts
      7969
      Views

      B

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