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. QLCDNumber blocked at 99999
Qt 6.11 is out! See what's new in the release blog

QLCDNumber blocked at 99999

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 502 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by
    #1

    Hi,
    from doc : "It can display a number in just about any size"

    In my app a QLCDNumber is displaying some counter value (incremented non stop every second), but when counter is greater than 99999 QLCDNumber blocks with 99999.
    What can cause this ?

        QObject::connect(ui->vncView,&QVNCClientWidget::incUpdated,[=](const int &newInc){
            ui->lcdNumber->display(newInc);
        });
    
    J.HilkJ 1 Reply Last reply
    0
    • ODБOïO ODБOï

      Hi,
      from doc : "It can display a number in just about any size"

      In my app a QLCDNumber is displaying some counter value (incremented non stop every second), but when counter is greater than 99999 QLCDNumber blocks with 99999.
      What can cause this ?

          QObject::connect(ui->vncView,&QVNCClientWidget::incUpdated,[=](const int &newInc){
              ui->lcdNumber->display(newInc);
          });
      
      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      hi @LeLev

      setDigitCount is your friend here,
      the default value is 5, can be set to anything between 0 and 99


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      4
      • ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        ah.. Thank you @J-Hilk

        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