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. Need help in qt-creator!!!
Forum Updated to NodeBB v4.3 + New Features

Need help in qt-creator!!!

Scheduled Pinned Locked Moved General and Desktop
6 Posts 6 Posters 2.6k 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.
  • I Offline
    I Offline
    ibancioiu
    wrote on 26 Nov 2011, 14:34 last edited by
    #1

    i'm new in qt... and in c++ programming
    i want to know what i have to do, to set a button to open a new window (i'm using linux)??????
    so i have a button in a window-> i'll press the button and after this a new window is showing up;
    SORRY FOR MY ENGLISH!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 26 Nov 2011, 14:45 last edited by
      #2

      You should be sorry for putting 6 question marks together instead :) And using a non-informative topic's subject.

      You have to connect button's onClicked() signal to a custom slot (Qt Creator can make that automatically for you). In your slot, invoke show() method of your new window (and, of course, instantiate it somewhere earlier in your code). In Qt, code is the same for all platforms, so the info about GNU/Linux is probably not needed here. I don't know how much "new" to C++ are you, so I'll leave it at that for now. If you don't understand, I can clarify. But, before asking, try using Qt documentation, it's very well written. Topics you might be interested in are "signals and slots", "QMainWindow", "QDialog", "QPushButton".

      (Z(:^

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on 26 Nov 2011, 15:16 last edited by
        #3

        Do yourself a favor and learn programming, learn C++ programming, learn Qt - in this order. You will save yourself a lot of troubles.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on 26 Nov 2011, 15:25 last edited by
          #4

          And you can start right here
          "http://qt.nokia.com/learning":http://qt.nokia.com/learning

          1 Reply Last reply
          0
          • W Offline
            W Offline
            walteste
            wrote on 26 Nov 2011, 17:54 last edited by
            #5

            I agree, if you don't have solid C++ knowledge, then you will end up in troubles or very buggy code.

            Please take the comment of Lukas Geyer very serious.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              shadowfox
              wrote on 27 Nov 2011, 04:20 last edited by
              #6

              find a c++ book first

              1 Reply Last reply
              0

              1/6

              26 Nov 2011, 14:34

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved