Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Displaying LCD Widget of Qt in QML
Forum Updated to NodeBB v4.3 + New Features

Displaying LCD Widget of Qt in QML

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 3.7k 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.
  • B Offline
    B Offline
    beh_zad
    wrote on last edited by
    #1

    Hi everybody, if i want to integrate QWidget (for use of Qlcdnumber) in QML (Qt Quick 2.0) , what should I do?
    i want to show LCD numbers manner in qt quick, but i was confused for this!

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      AFAIK you can't integrate Qt Widgets in QML. But you can make them reside side by side using QQuickWidget.
      Another simple way would be to use LCD fonts like "this":http://www.dafont.com/theme.php?cat=302 one.

      157

      1 Reply Last reply
      0
      • B Offline
        B Offline
        beh_zad
        wrote on last edited by
        #3

        thanks for replying, i used it, but i had problems with it and QLCDnumber has features that can solve my need.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          beh_zad
          wrote on last edited by
          #4

          QQuickWidget is a convenience wrapper for QQuickWindow which will automatically load and display a QML scene when given the URL of the main source file (qt help). it can't solve my problem.

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            Since you can't use Qt Widgets in QML, what i meant earlier was you can load the Qt widgets normally and the QML using QQuickWidgets on the same form layout.

            157

            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