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. Compiler error for accept and ignore calls when processing a close event
Forum Updated to NodeBB v4.3 + New Features

Compiler error for accept and ignore calls when processing a close event

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 281 Views 1 Watching
  • 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.
  • GuerrianG Offline
    GuerrianG Offline
    Guerrian
    wrote on last edited by Guerrian
    #1
    void MainWindow::closeEvent(QCloseEvent *event)
    {
        if (checkSave())
        {
            saveSettings();
            event->accept();
        }
        else
            event->ignore();
    }
    

    Gives error: member access into incomplete type 'QCloseEvent' on both lines with "event->".

    Linux Mint 18.3
    Qt 5.14.1
    Qt Creator 4.11.1

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      #include <QCloseEvent>

      1 Reply Last reply
      4

      • Login

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