Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QPoint : no such value --> crash
Forum Update on Monday, May 27th 2025

QPoint : no such value --> crash

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 1.0k 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.
  • B Offline
    B Offline
    bozo6919
    wrote on last edited by bozo6919
    #1

    Hi everybody,

    I tried to use this:
    https://github.com/expobrain/tabbedwindow-qt
    But in this example, there is a crash after several step :

    1. separate one window from another like this :
      0_1532438857548_1.PNG
    2. Click at the right of the text "red view" (or other text) who is alone, here (on the rectangular black) :
      0_1532439054016_2.PNG
      And the program crash.
      It crash on the file "ghostwindow.cpp" in this function :
    bool GhostWindow::dragStarted(const QPoint &pos)
    {
    	return (pos - m_originPos).manhattanLength()
    			>= QApplication::startDragDistance();
    }
    

    The debugger says: "m_originPos: No such value"
    I researched in the net how to know if a QPoint has a value but I couldn't find anything...
    Somebody know ?

    Sorry for my English ^^'

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bozo6919
      wrote on last edited by
      #3

      Ok thanks :)

      Sorry for my English ^^'

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

        I would guess that m_ghost inside TabBar::mouseReleaseEvent() is a nullptr or dangling pointer. You should ask the author of the code for help...

        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
        1
        • B Offline
          B Offline
          bozo6919
          wrote on last edited by
          #3

          Ok thanks :)

          Sorry for my English ^^'

          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