Navigation

    Qt Forum

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

    • UNSOLVED error: QThread no member named create
      General and Desktop • qthread threading multi-thread • • rtvideo  

      9
      0
      Votes
      9
      Posts
      101
      Views

      That question is being answered on this thread.
    • UNSOLVED Signal inside readyread of QUdpsocket
      General and Desktop • signal & slot threading udp qudpsocket • • Lior  

      7
      0
      Votes
      7
      Posts
      101
      Views

      @Lior said in Signal inside readyread of QUdpsocket: why the UI main thread stoped to respond ? the msleep is in anthor thread. Because you do it wrong (and I would guess the msleep is not in the thread but in the gui thread) but without code...
    • UNSOLVED UI Resposiveness + Multithreaded TCP server-client (UI lags, slow, less responsiveness when 2 client connected)
      General and Desktop • threading reponsiveness lagging • • VikramSamy  

      14
      0
      Votes
      14
      Posts
      1190
      Views

      Rather than having both your PLCs competing to write in some global structure. You should rather have them independently fill each their own structure and have some sort off watchdog switching from one or the other if needed. Depending on the how often the PLC are supposed to send data, you should maybe consider restarting the network check when you receive data rather than having that again competing with incoming data.
    • UNSOLVED QML Camera initialisation in background ?
      QML and Qt Quick • qml camera threading • • YenZi  

      2
      1
      Votes
      2
      Posts
      466
      Views

      Hi @YenZi A little bit late, but could using a Loader and settings its asynchronous property to true work? http://doc.qt.io/qt-5/qml-qtquick-loader.html#asynchronous-prop
    • UNSOLVED QWebSocket and Synchronous Response/Request Cycle
      General and Desktop • threading qwebsocket asynchronous synchronous • • ad7000  

      7
      0
      Votes
      7
      Posts
      1393
      Views

      @jsulm It's alright. I ended up going completely asynchronous by using a chained callback structure. Thanks anyways for the help!
    • UNSOLVED How to run a thread again?
      General and Desktop • thread threads threading ui object • • xLlama  

      4
      0
      Votes
      4
      Posts
      1483
      Views

      Hi, The terminate as it names suggest kills the the thread so it's state is not guaranteed as mentioned in the documentation. Not that you are automagically destroying everything once your operation is done. See your connections to the deleteLater slots.
    • SOLVED Slot called multiple times to a blocking function in the same thread
      General and Desktop • gui threading signals&slots • • moffa13  

      13
      0
      Votes
      13
      Posts
      4392
      Views

      @moffa13 said in Slot called multiple times to a blocking function in the same thread: One question : Is it bad to lock and unlock a mutex multiple times ? No, that's exactly what they are deigned for
    • UNSOLVED Sharing QOpenGLContext on devices where QSG runs on main thread
      Mobile and Embedded • android threading qopenglcontext opengl under qm shared • • Kostas  

      1
      0
      Votes
      1
      Posts
      442
      Views

      No one has replied

    • SOLVED Advice on adding threading in database application
      General and Desktop • qsqldatabase qsqlquery threading • • panosk  

      10
      0
      Votes
      10
      Posts
      5764
      Views

      @panosk and to be honest I had already started work on this You already have that in QSqlDatabase, you only need to keep track of the connections' names. Good luck!
    • UNSOLVED Catching Qt X11 3dMouse events in child thread
      General and Desktop • event threading x11 3dmouse • • MichalFasanek  

      2
      0
      Votes
      2
      Posts
      885
      Views

      Hi and welcome to devnet, What backtrace do you get from the crash ?
    • UNSOLVED BASIC THREADING
      General and Desktop • qthread qtcpsocket threading • • shrey  

      2
      0
      Votes
      2
      Posts
      927
      Views

      Hi and welcome to devnet, Are you also new to coding ? If so, then don't start with threads, that's a pretty complex subject that you should take on later after getting the basics correctly. Also, for what you described there's no need for threads. Qt's asynchronous nature already provide what's needed. Start with Qt's documentation. It also contains the Threading Basics On a side note, it's Qt, QT stands for Apple QuickTime which you might also be interested in.
    • UNSOLVED general project gudance ! if it is possible or not
      General and Desktop • python3 threading while loop no clue what so ever • • Kourpetis  

      3
      0
      Votes
      3
      Posts
      988
      Views

      @Kourpetis Hi, it sounds like your code is getting stuck in your while loop. I believe your code needs threading.
    • UNSOLVED QObject::connect() vs thread
      General and Desktop • thread connect threading qt5.5.0 • • Pogi  

      4
      0
      Votes
      4
      Posts
      1553
      Views

      There's no multi-threading involved here whatsoever. All code here runs in a single thread (unless the timer object and "this" actually live in different threads). There's an event loop running in your app and timer events are just the same as any other. They get put in a queue and processed one after another. The above will basically mean that your slot is run every time Qt processes messages. It can have very bad influence on your app responsiveness if what you do in the slot is heavy. The most obvious question is: if you want a thread why not use an actual QThread instead of emulating it like that?
    • UNSOLVED Favour invokeMethod or posting a custom event?
      General and Desktop • signal & slot threading qevent • • Jakob  

      1
      0
      Votes
      1
      Posts
      539
      Views

      No one has replied

    • SOLVED [Solved] QFile ReadOnly is thread safe?
      General and Desktop • qfile threading • • VRonin  

      3
      0
      Votes
      3
      Posts
      2160
      Views

      Thank you very much
    • Working with threads
      General and Desktop • qthread threading newbie • • David.G  

      4
      0
      Votes
      4
      Posts
      1479
      Views

      @David.G said: Thanks for the reply, @JKSH. I've been wondering, I'll remove the code of forever {}, what would be a way to constantly poll if there's data to process? Should I just use a timer every 1 second to keep poking the process method with a simple boolean that returns if process is already running?. You're welcome. :) Yes, using a timer is a good way to poll.
    • Problem with program that performs multiple processes.
      General and Desktop • python gui thread pyqt qtdesigner python3 threads threading pyqt4 multithreads pyuic • • Tas-sos  

      3
      0
      Votes
      3
      Posts
      2465
      Views

      How can i create my signal for text edit with python3 ? With as many ways i tried, but I did not succeed .. :(
    • Πρόβλημα με πρόγραμμα που εκτελεί πολλές διεργασίες.
      Greek • python gui thread pyqt threads threading pyqt4 multithreads • • Tas-sos  

      1
      0
      Votes
      1
      Posts
      1343
      Views

      No one has replied

    • [SOLVED]How to implement serial communication with a GUI
      General and Desktop • gui threading serial • • adgova  

      6
      0
      Votes
      6
      Posts
      1618
      Views

      You're welcome ! If that answers your questions then please update the thread title prepending [solved] so other forum users may know a solution has been found :) Also, consider up voting the answer(s) that you find useful, it will help others to find them more easily :)
    • [SOLVED] QSemaphore example: different behavior when splitting program over multiple files???
      General and Desktop • qthread threading qsemaphore • • Bart_Vandewoestyne  

      4
      0
      Votes
      4
      Posts
      1430
      Views

      You're Welcome
    • [SOLVED] SIGNAL/SLOT cannot work with Qt:QueuedConnection
      General and Desktop • signal & slot thread threading serialport terminal queuedconnectio • • Sen Li  

      5
      0
      Votes
      5
      Posts
      6790
      Views

      @Leonardo said: nections, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. ... Call qRegisterMetaType() to register the data type before you establish the connectio Wow, that really helps! Thank you so much! I will try it right now
    • I miss some bytes from Serial Port using Qt
      General and Desktop • qserialport threading arduino readyread • • LostInSpace  

      9
      0
      Votes
      9
      Posts
      3734
      Views

      #2 is wasteful way indeed! but in low baud rates it will help, but in this case I don't think this is a low baud rate. EDIT : I said for example 1ms, you really don't need it this fast, it depends on the frequency of getting bytes, for example for 20Hz you will have 20bytes every second which means you need a timer with at least 50ms refresh time and of course you read from serial port in asynchronous way then you can't 100% trust this way to read byte by byte, So as @JKSH said you better don't use this way if you don't have a specific reason.
    • error: cannot allocate an object of abstract type 'ClassName'
      General and Desktop • thread socket threading • • Giorgi  

      4
      0
      Votes
      4
      Posts
      3693
      Views

      OH yes. thread without run... thank you.
    • How to correct use QtConcurrent::run
      QML and Qt Quick • qml c++ threading • • shav  

      17
      0
      Votes
      17
      Posts
      6706
      Views

      @SGaist Thanks for the link! I'll check it!