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. Warning: QObject::startTimer: Timers can only be used with threads started with QThread
QtWS25 Last Chance

Warning: QObject::startTimer: Timers can only be used with threads started with QThread

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt 5.12qtimershared libraryqthreadstatic library
2 Posts 2 Posters 1.8k Views
  • 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.
  • A Offline
    A Offline
    adw0022
    wrote on last edited by
    #1

    I am seeing this warning message when attempting to run timers inside of my shared library:

    Warning: QObject::startTimer: Timers can only be used with threads started with QThread

    This behavior was not an issue when using a static library. So is this the expected behavior because of the shared library? I am not actively using threads either so I am unsure as to why I am seeing this.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Install a Qt message handler, set a breakpoint in there and take a look at the backtrace where it comes from.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved