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. (Solved)Weird behaviour of code

(Solved)Weird behaviour of code

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 413 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.
  • S Offline
    S Offline
    SetBetterPass
    wrote on last edited by
    #1

    I have a small project, instant messaging client which uses QXmpp (working on win7, Qt 5.2.0). By now, everything was working fine. Today, I opened the project like any other day in qt creator and when compiling I got this:
    QObject: Cannot create children for a parent that is in a different thread.
    (Parent is MainWindow(0x45fc80), parent's thread is QThread(0x13e0d50), current thread is QThread(0x1601f60)

    for this line:
    @ client = new QXmppClient(this);@
    It didnt happen before.
    Also when I tried to connect to server I got this:
    "Looking up server for domain 94.136.158.148"
    QDnsLookup requires a QCoreApplication

    which didnt hapen before either

    I found the reason, I somehow switched from debug mode to release which caused the problems, on debug mode it works.

    1 Reply Last reply
    0

    • Login

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