Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,084
    • Issues 2,084
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #22187
Closed
Open
Created Jun 03, 2012 by FPC Admin account@fpc_adminOwner

Scrolling throw db records in DBGrid, with arrow keys, in Qt widgetset, skips the last record.

Original Reporter info from Mantis: zoran
  • Reporter name: Zoran Vučenović

Description:

When you scroll in DBGrid with up and down keys, the last record is skipped in Qt widgetset. The bug does not occur in Win or Gtk2 ws.

Additional information:

I'm uploading the simple application which shows the bug. The application connects to a database named "db_test", change the path as appropriate for you. I use Firebird, but if you don't have FB installed, please make changes in the application to connect to dbms of your choice. You need to create the following table:

create table countries (
  id integer primary key,
  name varchar(30)
);

insert into countries (id, name) values (1, 'Italy');
insert into countries (id, name) values (2, 'Belgium');
insert into countries (id, name) values (3, 'Russia');
insert into countries (id, name) values (4, 'Spain');

The application connects to this table and shows four rows in grid. To reproduce the bug, press down key three times and see that the last row gets skipped and the grid appends new row.

The bug cannot be reproduced with read-only dataset or grid, so take care that Query and Grid have ReadOnly set to False (which is the default).

In my example I use SqlDB components, but I tried with Zeos also and the bug remains! Therefore, this is probably Qt widgetset bug, not SqlDB bug.

Mantis conversion info:

  • Mantis ID: 22187
  • Version: 1.1 (SVN)
  • Fixed in revision: 37534 (#64f7c37c)
  • Target version: 1.0
Assignee
Assign to
Time tracking