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. Parent not accessible from mainwindow what can possibly cause this?
Qt 6.11 is out! See what's new in the release blog

Parent not accessible from mainwindow what can possibly cause this?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 236 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
    AI_Messiah
    wrote on last edited by
    #1

    I get this message from mainwindow but the parent is main.cpp and I haven't changed it in any way.

    JonBJ 1 Reply Last reply
    0
    • A AI_Messiah

      I get this message from mainwindow but the parent is main.cpp and I haven't changed it in any way.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @AI_Messiah
      Get this message when? When you run your program? When you compile your program? On a line of code?

      but the parent is main.cpp

      No it isn't. main.cpp is a C++ source file. Nothing to do with "parent".

      Your QMainWindow is likely your top-level window. So it won't have a parent. Why/how you are trying to access its parent I don't know, but it doesn't make sense.

      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