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. [SOLVED] Require help on Dragging a Row From QTableview and drop into a sub-classed PushButton
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Require help on Dragging a Row From QTableview and drop into a sub-classed PushButton

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

    Hello
    First of all, thanks for taking time to read my post.

    I am trying to acheive the following.
    On a form i have an array of pushbuttons (that are subclassed already from QPushbutton to mypushbutton - Events currently handled are EnterEvent and LeaveEvent) .

    1. I have a QTableView with QSqlQueryModel to fill in the data from a database.
    2. I need to be able to drag a row from the QTableView to a pushbutton.
      (a). Can a QSqlQueryModel be used to achieve this.
      (b). What functions do I need to subclass and re-implement in the QTableView.
      (c). What additional functions do I need to re-implement in mypushbutton class.

    Your thoughts and suggestions would be well appreciated.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi,

      drag and drop is well documented, even for models. Have a look "here":http://qt-project.org/doc/qt-4.8/examples-draganddrop.html

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      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