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. Qt 5.0.2 & 5.1.0 Drag and the Drop crash ?
Forum Updated to NodeBB v4.3 + New Features

Qt 5.0.2 & 5.1.0 Drag and the Drop crash ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 177 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.
  • J Offline
    J Offline
    jackyjoy123
    Banned
    wrote on last edited by jackyjoy123
    #1

    Hello,

    I've been using Qt for a while and it is great, however I encountered a problem in the newer version.
    When I start dragging and drop immediately - application just crashes with an error message "Access violation reading location", I swear I checked everything twice, made a lot if/else for sanity checks, still nothing. (looked into sample code, documentation, everything)
    https://creditcardsupportx.com/pep-boys-credit-card
    https://creditcardsupportx.com/bobs-furniture-credit-card
    https://creditcardsupportx.com/quicklane-credit-card
    It crashes before it gets a chance to call dropEvent() function, even though dragEnterEvent() and dragMoveEvent() being called.
    What could it be? I have no debugging symbols and call stack is just helpless.
    Drag and drop action happens between two QMainWindows that are owned by the main QMainWindow (dragging from QListWidget and dropping to QTableWidget that are inherited by custom classes).
    It is crashing in both Debug and Release.

    P.s. if I wait a little before dropping all seems to be working

    thanks
    jackyjoy

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

      Are you sure you mean Qt5.0 and Qt5.1?
      Please provide a minimal, compilable example and your OS

      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
      0

      • Login

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