Results 1 to 3 of 3

Thread: QMainWindow inside a MDIarea as QMDisubwindow. Icon not changing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2011
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question QMainWindow inside a MDIarea as QMDisubwindow. Icon not changing

    hi,
    I have a QT Gui application that has a MdiArea where I open subwindows, also based on QMainwindow. I've done that essentially because I wanted to have a taskbar on each of the subwindows.
    Everything works fine but the icon in each of the subwindows is the same as the application itself.

    the setWindowTitle works great I can have different windows titles for the subwindows but setWindowIcon has no effect.

    anyone knows how to change the icons in this case?

    An happy new year.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QMainWindow inside a MDIarea as QMDisubwindow. Icon not changing

    Did you make sure the icon (or resourse file) is accessible, watch for warnings in Application Output
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. How to open an external App inside QMainWindow
    By lorik in forum Qt Programming
    Replies: 5
    Last Post: 29th December 2011, 01:07
  2. changing the color of the titlebar of a QMdiSubWindow
    By eric_vi in forum Qt Programming
    Replies: 2
    Last Post: 17th March 2011, 21:41
  3. QMainWindow inside another widget
    By DanFessler in forum Newbie
    Replies: 4
    Last Post: 23rd August 2010, 21:58
  4. Changing icon in sidebar at QFileDialog possible ?
    By skyperhh in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2009, 11:15
  5. QMainWindow: problem changing centralWidget
    By Caius Aérobus in forum Qt Programming
    Replies: 6
    Last Post: 4th October 2007, 13:00

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.