Results 1 to 11 of 11

Thread: "Multiple definition of 'gridLayout'"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: "Multiple definition of 'gridLayout'"

    Quote Originally Posted by Darhuuk View Post
    I originally made it in Designer, compiled the .ui file and then just took the parts I needed for Ui_PokerInfoTable.h and put them in the PokerTableInfo class
    These variables are global, they don't belong to any class.

    Quote Originally Posted by Darhuuk View Post
    so that I didn't have to let it inherit Ui_PokerInfoTable
    You don't have to inherit from Ui:xxx classes to use them. You can use aggregation instead. With your approach you have lost possibility to change the layout with Designer.

    Quote Originally Posted by Darhuuk View Post
    It works fine if I change the name of the gridLayout variable to gridLayout1.
    That's because you never use those variables.

  2. The following user says thank you to jacek for this useful post:

    Darhuuk (8th January 2008)

Similar Threads

  1. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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
  •  
Qt is a trademark of The Qt Company.