Results 1 to 4 of 4

Thread: Error calling ui widget

  1. #1
    Join Date
    Aug 2015
    Posts
    8
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Error calling ui widget

    Qt gives me this error when i am trying to compile it. I m trying to call a widget from another ui,but i cant understand what is wrong.If someone could helpme please.Thank you a lot

    Στιγμιότυπο από 2015-11-12 18:05:15.jpg

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Error calling ui widget

    Assuming a standard "designer class", the UI pointer is simply "ui" so
    Qt Code:
    1. ui->listWidget->....
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  3. #3
    Join Date
    Aug 2015
    Posts
    8
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Error calling ui widget

    thank you but i said the problem is that the widget is on history.ui and i am trying to call it from mainwindow.cpp


    Added after 20 minutes:


    yeahhhhh...i found it i used history1.ui->..... and set it to public and thats it!
    Last edited by giannis1991; 12th November 2015 at 16:47.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Error calling ui widget

    Very strange setup though

    Cheers,
    _

Similar Threads

  1. Calling function in a widget's destructor
    By fiodis in forum Newbie
    Replies: 4
    Last Post: 5th December 2012, 18:54
  2. Calling a method to a parent window/widget
    By johnnyturbo3 in forum Newbie
    Replies: 4
    Last Post: 6th November 2010, 15:52
  3. Replies: 2
    Last Post: 30th July 2010, 15:59
  4. error calling method using connect
    By jeffmetal in forum Newbie
    Replies: 4
    Last Post: 22nd April 2010, 18:09
  5. Extra moveEvent after calling winId for a widget.
    By Alex_123 in forum Qt Programming
    Replies: 1
    Last Post: 31st December 2008, 17:57

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.