Results 1 to 4 of 4

Thread: designer behaved abnormally...

  1. #1
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default designer behaved abnormally...

    I right clicked on the designer file & selected change stylesheet option & typed as follows:
    QMainWindow
    {
    background-color:black;
    }
    the background of form in preview & output showed black after compiling & running.But when i again right clicked on the designer file & selected change stylesheet option & deleted the previously typed code.In the preview it showed as usual(i.e.not black) but after compiling & running it is still showing black background in the output.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: designer behaved abnormally...

    Maybe you forgot to save the file in Designer?

  3. #3
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: designer behaved abnormally...

    no sir,I saved the file

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: designer behaved abnormally...

    Remove the ui_*.h file created during compilation and rebuild the project.

Similar Threads

  1. designer behaved abnormally...
    By sh123 in forum Qt Tools
    Replies: 1
    Last Post: 16th December 2008, 19:00
  2. Replies: 13
    Last Post: 15th December 2006, 12:52

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.