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. QAccel is not found in my Qt Library
Forum Updated to NodeBB v4.3 + New Features

QAccel is not found in my Qt Library

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 228 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.
  • D Offline
    D Offline
    dan1973
    wrote on last edited by
    #1

    I am usingn QAccel class in one of my Sample Qt project.

    #include "dialog.h"
    #include "ui_dialog.h"
    #include <qaccel.h>
    
    Dialog::Dialog(QWidget *parent) :
        QDialog(parent),
        ui(new Ui::Dialog)
    {
        ui->setupUi(this);
    
        QAccel *f2 = new QAccel(this);
        f2->connectItem(f2->insertItem(Key_F2), this, SLOT(popupCalendar()));
        connect(startButton, SIGNAL(clicked()), this, SLOT(popupStartCalendar()));
        connect(endButton, SIGNAL(clicked()), this, SLOT(popupEndCalendar()));
    }
    

    but the compiler indicated file not found on accel..h
    how to include this?

    Christian EhrlicherC 1 Reply Last reply
    0
    • D dan1973

      I am usingn QAccel class in one of my Sample Qt project.

      #include "dialog.h"
      #include "ui_dialog.h"
      #include <qaccel.h>
      
      Dialog::Dialog(QWidget *parent) :
          QDialog(parent),
          ui(new Ui::Dialog)
      {
          ui->setupUi(this);
      
          QAccel *f2 = new QAccel(this);
          f2->connectItem(f2->insertItem(Key_F2), this, SLOT(popupCalendar()));
          connect(startButton, SIGNAL(clicked()), this, SLOT(popupStartCalendar()));
          connect(endButton, SIGNAL(clicked()), this, SLOT(popupEndCalendar()));
      }
      

      but the compiler indicated file not found on accel..h
      how to include this?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @dan1973 said in QAccel is not found in my Qt Library:

      how to include this?

      'QAccel' is not available since Qt3 - please upgrade your books / references where you get your code from.
      See QKeySequence.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      D 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @dan1973 said in QAccel is not found in my Qt Library:

        how to include this?

        'QAccel' is not available since Qt3 - please upgrade your books / references where you get your code from.
        See QKeySequence.

        D Offline
        D Offline
        dan1973
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thank you Christian

        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