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. Bind Qlable to Sqlserver Database

Bind Qlable to Sqlserver Database

Scheduled Pinned Locked Moved Solved General and Desktop
bindqlablesqlserverdatabase
3 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    M4RZB4Ni
    wrote on 9 Aug 2016, 14:17 last edited by
    #1

    Hello

    I want to Bind a Qlable to a Table of Database(Sql SERVER 2014)
    and i dont know How i must do this!
    I searched in Google and i did Not Found any Solution For This Problem!

    For Example Qcombobox Have .Setmodel() For doing This
    but lable do not have this method or Like this!

    any body can Help me?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 9 Aug 2016, 14:34 last edited by
      #2

      hi
      You can use
      http://doc.qt.io/qt-5/qdatawidgetmapper.html

      to insert data to label. It can not be directly tied to a model.

      1 Reply Last reply
      3
      • M Offline
        M Offline
        M4RZB4Ni
        wrote on 10 Aug 2016, 14:05 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        3/3

        10 Aug 2016, 14:05

        • Login

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