Results 1 to 4 of 4

Thread: QToolbar in Window Vista prob.

  1. #1
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Red face QToolbar in Window Vista prob.

    I am using QT4.3.
    In my program i got use a Toolbar and declare as the QToolbar widget.
    toolBar = new QToolBar("ToolBar", this);

    my problem is:
    when launch the program in Window XP, everything work fine.
    when launch the program in Window Vista, a black border line appear on the bottom part and right part of the toolbar. Whereas no black line appear on the left and top part of the Toolbar.
    Any suggestion to solve this prob? Thanks for sharing your experience.

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

    Default Re: QToolbar in Window Vista prob.

    How do you add the toolbar to a main window?

  3. #3
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QToolbar in Window Vista prob.

    lblToolBar = new QLabel(this);
    toolBar = new QToolBar("ToolBar", lblToolBar);

    i tried with QT 4.1.3, and this problem do not occur.
    Thanks

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QToolbar in Window Vista prob.

    You should use QMainWindow::addToolBar().
    J-P Nurmi

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.