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. QSocketNotifier can not be enabled or disabled from another thread
Forum Updated to NodeBB v4.3 + New Features

QSocketNotifier can not be enabled or disabled from another thread

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 376 Views 2 Watching
  • 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.
  • M Offline
    M Offline
    MokJ
    wrote on last edited by
    #1

    What if this warning comes!!!?
    Does it mean bad programming?
    Does it cause any troubles?

    kshegunovK 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Often it means there is a design issue where one thread fiddles with some others treads objects.
      Sometimes its due to moveToThread mistake or something like that.
      It can cause issues in that it wont be disabled/enabled. etc.
      Might even crash.

      1 Reply Last reply
      3
      • M MokJ

        What if this warning comes!!!?
        Does it mean bad programming?
        Does it cause any troubles?

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by kshegunov
        #3

        @MokJ said in QSocketNotifier can not be enabled or disabled from another thread:

        What if this warning comes!!!?

        Qt issues that warning at runtime.

        Does it mean bad programming?

        Oh yes, it should be treated as an error in the user code!
        As a matter of fact you should treat all warning that come from Qt as errors in the user code.

        Does it cause any troubles?

        It does.

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        3

        • Login

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