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. Error No Matching Function for call to 'QByteArray::toHex(char)'
Forum Update on Monday, May 27th 2025

Error No Matching Function for call to 'QByteArray::toHex(char)'

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

    Hallo,
    I made qmake and want to compile QtSerialbus for my Raspberry Pi.

    when I type "make" it will throw me following message:

    /home/pi/d0Ext/d0Daemon/qtserialbus/src/serialbus/qcanbusframe.cpp:427:52: error: no matching function for call to ‘QByteArray::toHex(char)’
             const QByteArray data = payload().toHex(' ').toUpper();
    

    there is no compiled version of QtSerialbus on the repositories :/

    Can someone help me?

    Thanks

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

      Hi,

      What version of Qt are you using to build that module ? That overload of toHex is present since Qt 5.9.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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