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. Use of undeclared identifier 'setMode'
Forum Updated to NodeBB v4.3 + New Features

Use of undeclared identifier 'setMode'

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

    the error is when I use QT6.2 run the code.

    case QEvent::ApplicationPaletteChange: {
    setMode(setMode);

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You have a compile-time error, not a run-time one.

      The undisclosed class that this bit of code appears in does not have a setMode() function in scope (member or global) or there is no variable in scope named setMode. I am not aware of any commonly used Qt class with such a method.

      In any case, having a function and variable of the same name is odd/broken.

      1 Reply Last reply
      3

      • Login

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