Results 1 to 3 of 3

Thread: `lineEdit' was not declared in this scope?

  1. #1
    Join Date
    Nov 2009
    Posts
    3
    Qt products
    Qt4

    Question `lineEdit' was not declared in this scope?

    Hai all, i have a lineEdit object in qt application and give it name lineEdit. i want to access th eobject name lineEdit in dialog.cpp but i get an error. the error is: `lineEdit' was not declared in this scope. how to acces the object name lineEdit in Line Edit Object? please help me!!!!.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: `lineEdit' was not declared in this scope?

    Quote Originally Posted by i4ba1 View Post
    please help me!!!!.
    Show us some code!!!! Where have you create the line edit and where do you want to access it. Did you use "ui->"?

  3. #3
    Join Date
    Nov 2009
    Posts
    3
    Qt products
    Qt4

    Smile Re: `lineEdit' was not declared in this scope?

    Tahnk you for your help, i add code ui->lineEdit name and it solve my problem.

Similar Threads

  1. Gtk error when installing Qt in linux
    By john_god in forum Installation and Deployment
    Replies: 1
    Last Post: 18th November 2009, 05:08
  2. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 10:15
  3. Just for fun game
    By vermarajeev in forum Qt-based Software
    Replies: 6
    Last Post: 13th December 2007, 21:52
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

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.