Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT Designer problem.
Qt 6.12 LTS is out! See what's new in the release blog

QT Designer problem.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 887 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    There is a default toolbar in my form, when I drag a push button on it. It says no and can't add to it.
    Thanks
    Jack

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      The tool bar is a drop target for actions not widgets. Corresponding QToolButtons are generated for actions on the tool bar.
      "Creating Main Windows in Qt Designer: Adding and Removing Toolbar Buttons":http://qt-project.org/doc/qt-5.0/qtdesigner/designer-creating-mainwindows.html#adding-and-removing-toolbar-buttons

      If you really want to put a standard widget on the tool bar you will have to do it in code with QToolBar::addWidget()

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved