Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - conejame

#1
Programming Help / Re: (Mixed) versions of QT
July 10, 2008, 09:49:41 AM
I've worked out that you have to:
 - load and save the .ui file in Designer
 - move the .ui file from the FORMS3 list to the FORMS list
 - add setupUi() to the constructor
 - rewrite the setText methods

I'm currently stuck on:
 - the slots/signals for closing the form don't work
      - if I call accept() and reject() directly from the designer, the form closes
      - if I call them from the custom functions, the form stays put

 - when the application shuts down, the memory allocator dumps core in the ~~QtMutex~~

 - I haven't made the change I want (being able to go through all of the cells and change them, without using the mouse for every cell) work yet
     - if I make them tick boxes, <space> toggles them, but I don't know how to receive notice that they have toggled, in order to change the words

 - I have made the user inteface worse
     - the layout manager doesn't stretch the grid of tick boxes, etc, in order to use it's share of the form

So I am currently defeated by Qt.
#2
Programming Help / (Mixed) versions of QT
July 07, 2008, 10:11:36 PM
Hi Liviu,

I would like to change the way one of the screens works, and I think I need a Qt4 table widget, to do what I want.  What do you think to having a mixture of Qt3 and Qt4 screens, in different subdirectories in the source, as an interface?

(This is on a path to using fet as a user interface, to write a .fet file, and then computing my scheduling problem with a command-line program.)

Regards,
James.
#3
General Stuff / Re: Course offered more than once
July 06, 2008, 11:00:37 AM
Unfortunately, I have this problem too.  I have a bunch of people with pre-existing not-available times, and I'm trying to find the minimum set of meetings, so that each of them can go to one meeting.  

I'm trying to define each person's attendance as a separate activity, and use the 'Activities must have the same starting time' constraint.  

As long as there is a single meeting for everyone, FET finds it quickly, even breaking another 50% constraint.  If there is not one meeting for everyone, it does not know what I want.  

I am imagining extending the 'Activities must have the same starting time' constraint, to have a field for the maximum number of starting times, and the minimum number of students at each starting time, but I suspect that there are many things that I don't know, which would make this hard.

I am attaching my (non-solvable) definition file.  Remove student 'john' to make it solvable.