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 with class QLCDNumber' using QT 5.2 on windows 8 and wingw_32
Qt 6.11 is out! See what's new in the release blog

Error with class QLCDNumber' using QT 5.2 on windows 8 and wingw_32

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.5k 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.
  • W Offline
    W Offline
    wave5d
    wrote on last edited by
    #1

    error with class QLCDNumber' using QT 5.2 on windows 8 and wingw_32

    I am getting this error

    error: 'class QLCDNumber' has no member named 'setNumDigits'
    lcdNumber->setNumDigits(2);

    my include is : .... mingw48_32\include\QtWidgets/QLCDNumber

    thanks for any help

    1 Reply Last reply
    0
    • ZlatomirZ Offline
      ZlatomirZ Offline
      Zlatomir
      wrote on last edited by
      #2

      The function name is "setDigitCount":https://qt-project.org/doc/qt-5/qlcdnumber.html#digitCount-prop

      https://forum.qt.io/category/41/romanian

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wave5d
        wrote on last edited by
        #3

        Thanks especially the quick response, that seems to have gotten me past it.
        I am porting a project for someone and brand new to QT and have had other similar issues since it was a 4.8.3 project on Linux. This forum has helped with previous answers
        I guess a recent change.

        I am building with OpenCV and it is not finding the libraries so looking for best way to point to them.

        1 Reply Last reply
        0
        • ZlatomirZ Offline
          ZlatomirZ Offline
          Zlatomir
          wrote on last edited by
          #4

          Just a couple of days ago i wrote an answer on stackoverflow regarding adding opencv in a qmake project file: "link":http://stackoverflow.com/questions/20588440/include-path-for-adding-an-external-library-in-qt-creator/20589013#20589013

          It uses the VS2010 build of opencv, but for mingw should be simpler, as far as i know that doesn't use two file names for debug/release build (that d at end of the library name), anyway first try it yourself and ask if you run into troubles.

          https://forum.qt.io/category/41/romanian

          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