Results 1 to 2 of 2

Thread: Designer & functionparameters

  1. #1
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Designer & functionparameters

    Hi,
    I have a problem with creating the function that I want, with a default-valued parameter, like this:
    setMode(int m, bool s = false)
    I have to use the Designer to make this function, because the whole class is a .ui.h-file.
    When I try to create this function private it's ok until I run NMAKE(UIC), then the Designer change the function to a public slot. In the ui.h-file the function appears right, but it's not in the .h-file and will of course not compile.

    Is there someone who have had a similar problem and know what to do?

    Best regards
    Chaimar...

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows
    Thanks
    9
    Thanked 27 Times in 27 Posts

    Default Re: Designer & functionparameters

    Just remark:
    Dont want decline from using ui.h files? With subclassing method ui programming your problem will be solved
    a life without programming is like an empty bottle

Similar Threads

  1. Threads in Designer plugins
    By hvengel in forum Qt Tools
    Replies: 2
    Last Post: 3rd January 2009, 19:19
  2. Qt Designer not showing the main window
    By alecs1 in forum Qt Tools
    Replies: 2
    Last Post: 29th January 2008, 23:02
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  5. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28

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.