Results 1 to 4 of 4

Thread: Dockwidget and Toolbutton

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Dockwidget and Toolbutton

    Hi all,
    i am a newbie in Qt programming. i am doing an editor like tool for VHDL files. i have my own configuration file for storing the configurations regarding the project settings. i have a QTextEdit set as the centralWidget of main window....and a dock widget which is left or right dockable. Dockwidget will contain a set of tool buttons which when clicked will show the corresponding information in a textedit inside the dockwidget.

    My problem is that, when i add the toolButtons in the dockwidget using dockWidget->setWidget(), the last button comes on top of the previous one.... any ideas on how to solve this..??? (code for the dock widget is attached.)

    Also when i do the same thing thru Designer, there is no issue of overlapping buttons. But when i used the layout on the buttons in the dock widget, the size of the buttons are automatically adjusted. This will make the buttons non uniform. How may i solve this?

    Thanks in advance.... this is my first post in this forum... xpecting quick replies... Please help me if anyone has an idea...
    Regards
    Sandeep.
    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.