Results 1 to 2 of 2

Thread: problem with qt creator

  1. #1
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    3

    Default problem with qt creator

    Hi,

    I'm trying to do a project with qt creator. In mainwindow.ui, I open qt designer and I put a qlabel with objectName called "eti".

    Then, in mainwindow.cpp I do:
    eti->setText("Hola");

    But when I compile it says me:
    'eti' was not declared in this scope

    Could you help me please? Many thanks and sorry for my english!

  2. #2
    Join Date
    Dec 2009
    Posts
    26
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem with qt creator

    Try:

    Qt Code:
    1. ui->eti->setText("Hola");
    To copy to clipboard, switch view to plain text mode 

    And, no offense, but try reading the documentation....

Similar Threads

  1. Qt Creator - signals/slots problem
    By ctote in forum Qt Programming
    Replies: 2
    Last Post: 18th February 2010, 03:03
  2. qt creator debugging problem
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2009, 21:10
  3. creator MSVC debugger problem
    By glenn in forum Qt Tools
    Replies: 0
    Last Post: 10th August 2009, 10:44
  4. QT Creator problem with examples
    By maccabees in forum Newbie
    Replies: 6
    Last Post: 27th July 2009, 18:19
  5. A build problem in Qt creator 1
    By Dante in forum Qt Programming
    Replies: 6
    Last Post: 13th March 2009, 17:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.