Hi,

this is a mailing list about the Qt Quick Components project, not about Qt or 
its tools in general. qt-inter...@qt.nokia.com is the mailing list for this.

Anyhow, the tutorial you've linked to is for Qt 3, which isn't supported any 
more since 2007 - and 3.3 is even older (released 2004)! I guess you have your 
reasons for staying with Qt 3?

Regards

Kai
 
--
Kai Koehne
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
________________________________________
From: qt-components-bounces+kai.koehne=nokia....@qt.nokia.com 
[qt-components-bounces+kai.koehne=nokia....@qt.nokia.com] on behalf of ext 
tony.chamberl...@lemko.com [tony.chamberl...@lemko.com]
Sent: Friday, May 06, 2011 11:08 PM
To: qt-components@qt.nokia.com
Subject: [Qt-components] qt designer

I hope this is the correct list to ask.  I am following the Independent
QT tutorial (URL may get removed by listserve?):
http://www.digitalfanatics.org/projects/qt_tutorial/chapter05.html

Everything is OK until I add the functions for addItem() and removeItem().
The actual properties box for leItem shows a text field, but when I type
leItem-> in the function and see the menu of choices for properties, there
is no text field.  Similarly for lbitems, the menu gives no insertItem()
choice (but lots of other choices, maybe the same as for the leItem).

The version appears to be consistent, 3.3, and the text field is shown
in the box, just not in the selection menu when typing the class name.
Anyone know what is wrong?



 =====
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename slots use Qt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/

void dlgMain::addItem()
{
  if( leItem->text().length() > 0 )
  {
    lbItems->insertItem( leItem->text() );
    leItem->clear();
  }

  leItem->setFocus();
}

void dlgMain::removeItem()
{
  if( lbItems->currentItem() > -1 )
    lbItems->removeItem( lbItems->currentItem() );
}

void dlgMain::init()
{
  lbItems->clear();
  leItem->setFocus();


_______________________________________________
Qt-components mailing list
Qt-components@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-components
_______________________________________________
Qt-components mailing list
Qt-components@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-components

Reply via email to