Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. [SOLVED] dropped contents is not getting placed into cells in qtablewidget
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] dropped contents is not getting placed into cells in qtablewidget

Scheduled Pinned Locked Moved India
1 Posts 1 Posters 936 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.
  • E Offline
    E Offline
    ecmanja
    wrote on last edited by
    #1

    hello , i’m not getting how to place dropped contents in cells of tablewidget , here is my code . i’m getting dragged contents but the problem is in placing into cells :( please do help me to solve this problem.

    @
    void ProjectListWidget::dropEvent(QDropEvent *event)
    {
    qDebug()<<"drop event";
    ProjectListWidget *source =
    qobject_cast<ProjectListWidget *>(event->source());
    if (source && source != this) {
    QString str=event->mimeData()->text();
    qDebug()<<"str=="<<str;
    event->setDropAction(Qt::CopyAction);
    event->accept();
    }
    }@

    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