Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QSocketNotifier can not be enabled or disabled from another thread

    General and Desktop
    3
    3
    240
    Loading More Posts
    • 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
      MokJ last edited by

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

      kshegunov 1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        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 Reply Quote 3
        • kshegunov
          kshegunov Moderators @MokJ last edited by kshegunov

          @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 Reply Quote 3
          • First post
            Last post