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. AudioRecorder example
Forum Updated to NodeBB v4.3 + New Features

AudioRecorder example

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 246 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.
  • PsnarfP Offline
    PsnarfP Offline
    Psnarf
    wrote on last edited by
    #1

    In the AudioRecorder example, when I open audiorecorder.cpp in Creator, lots of semantic errors:
    ui->setupUi(this); * cannot initialize a parameter of type 'QMainWindow *' with an rvalue of type 'AudioRecorder *'
    m_audioRecorder = new QAudioRecorder(this); * no matching constructor for initialization of "QAudioRecorder'
    for (auto &device: m_audioRecorder->audioInputs()) { * invalid range expression of type 'QStringList'; no viable 'begin' function available
    etc.
    Yet I am able to build and run the example. What could be generating these "errors"? Is there something in Tools:Options that I missed?

    1 Reply Last reply
    0
    • PsnarfP Offline
      PsnarfP Offline
      Psnarf
      wrote on last edited by
      #2

      Nevermind, please delete this so I can go away. I forgot that I was experimenting with g++v11.0 while stddef and gcc were still v10.3. G++ couldn't find stddef.

      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