Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Qt Creator -> QToolBar
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt Creator -> QToolBar

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.8k 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.
  • R Offline
    R Offline
    RichardM198030
    wrote on last edited by
    #1

    I was messing around in Qt Creator, and noticed, it automatically puts a QToolBar widget on the form, but when I went to look in Properties Editor Pane, on the right, there's no where, where you can put Images on it, for Open Save, I also looked in Qt Docs and other stuff, found nothing, how do I put images on the QToolBar? I named it toolBar1 under Properties Pane in Qt Creator. I figured there would have been a place in Qt Creator where it does that for you, I guess not.. Also, I noticed, I right clicked a button I put on there, clicked go to slot, then clicked clicked event, I typed in connect ( pushButton , SIGNAL ( clicked ( ) ) , this, SLOT (close ( ) ) ) ; it threw an error about not declaring the variable pushButton in this scope, I thought that's the whole point of Qt Creator, to do things quickly and efficiently? I know I can use the Signals/Slots Editor under the text editor in Qt, but I figured I could do all that within Qt Creator under Edit Mode. Anyway, thanks in advance !!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      You most probably have a member ui in your class that contains the user interface parts, so connect( ui->pushButton, ...) should do the trick.

      See "Using a Designer UI File in Your Application":http://doc.qt.nokia.com/latest/designer-using-a-ui-file.html of the designer docs for more information.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RichardM198030
        wrote on last edited by
        #3

        [quote author="Volker" date="1298544355"]You most probably have a member ui in your class that contains the user interface parts, so connect( ui->pushButton, ...) should do the trick.

        See "Using a Designer UI File in Your Application":http://doc.qt.nokia.com/latest/designer-using-a-ui-file.html of the designer docs for more information.[/quote]

        Oh oh oh oh oh, thanks a million, that should most definitely work !!

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RichardM198030
          wrote on last edited by
          #4

          [quote author="Volker" date="1298544355"]You most probably have a member ui in your class that contains the user interface parts, so connect( ui->pushButton, ...) should do the trick.

          See "Using a Designer UI File in Your Application":http://doc.qt.nokia.com/latest/designer-using-a-ui-file.html of the designer docs for more information.[/quote]

          Ok, it worked, consider this post solved, =). It does want me to double click the button, but other than that, this post can now be closed, =). Thanks a lot !!

          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 Extensions
          • Unsolved