programming-interface

Qt: Creating an Array of Widgets

in programming, programming-interface, programming-qt

One of the features I like in Visual Basic 6 is how easy it is to create an array of "controls", what your average person would call an "interface object" or "widget". By placing a control on the form and then copy-pasting the control into the same form, the IDE would prompt you to create an array for that control.



It's just that simple.

QTableView - Primary Keys and User Interfaces

in programming, programming-database, programming-interface, programming-qt

In a database schema it is generally necessary to use a primary key for each relation. These keys often only exist in the database and aren't displayed to the user as they have no contextual meaning. While you may be able to use something that should be unique to each row as a primary key (think social security numbers), I follow the practice of creating an explicit column for each relation as the primary key.

Copyright© Joseph W. Dougherty 2011