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
QtWS25 Last Chance

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.
  • M4RZB4NiM Offline
    M4RZB4NiM Offline
    M4RZB4Ni
    wrote on 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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
      • M4RZB4NiM Offline
        M4RZB4NiM Offline
        M4RZB4Ni
        wrote on last edited by
        #3
        This post is deleted!
        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