Results 1 to 20 of 22

Thread: Skinned Windows (own TitleBar and Borders)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Wink Skinned Windows (own TitleBar and Borders)

    This two little classes let you use own windowframes and titlebars.
    the windows which are created with this class can be resized and moved like normal windows
    and have three buttons on top. For an own skin you will need 9 pixmaps:
    -> left border(sl), left-bottom corner(elu), right-bottom corner(eru), right border(sr),
    titlebar(so), bottom corner(su)
    -> maximize (maxButton), minimize(minButton), close(quiButton)
    if you want to skin your application just set QSkinWidget as Parent. if you want to skin a MainWindow use something like this:
    Qt Code:
    1. QSkinMainWindow *wid = new QStyleMainWindow();
    2.  
    3. MainWindow mainWindow;
    4. wid->setWindowTitle(APP_TITLE);
    5. wid->setCentralWidget (&mainWindow);
    6. wid->resize(550,650);
    7. wid->show();
    To copy to clipboard, switch view to plain text mode 
    enjoy working with this classes, even its somekind of "murx".
    please let me know if you find better ways to realyze things i did in the classes and use them only for opensource-software.
    i hope i will get some feedback!
    P.S. Sorry for my bad english and no comments, i will type them as far as i can...
    Attached Files Attached Files

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.