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. Different output in VS2010 than ... everything else
QtWS25 Last Chance

Different output in VS2010 than ... everything else

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.0k Views
  • 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.
  • T Offline
    T Offline
    tachoknight
    wrote on last edited by
    #1

    Hi all-

    I'm a complete newbie to QT, having downloaded the SDK on Monday. Working with both QT Creator and the Eclipse plugin, I have created some test applications and I'm just blown away by how cool QT is; once I figured out how to do the signal->slot connections in the designer, I was happily coding away. Awesome stuff!

    I apologize if this is an "everybody knows but me" question, but I was wondering why the UI member in a project generated using the VS Plugin is not a pointer, when an identical project created under QT Creator, and the QT Plugin for Eclipse, it is. Not a huge deal, of course, but moving code back and forth from the various projects requires changing the dereference operator. I know I could just change it, but I figured there might be a reason why it was done this way.

    Just curious, I already love QT...I'm never going back to MFC. :)

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      I've not used VS Plugin and can't answer you on that but

      [quote author="tachoknight" date="1289406730"]I'm never going back to MFC. :)[/quote]

      cheers! I know exactly what you mean and welcome to Qt! I'm a convert too and it was bye bye Java for me :)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        There are several ways to do UI file integration into C++ classes (as "documented":http://doc.qt.nokia.com/4.7/designer-using-a-ui-file.html#the-direct-approach). VS Plugin and Qt Creator both implement a flavor of "the direct approach". I doubt that there is any more specific reason than personal preferences of the developers that actually did the wizards to set them up.

        Having said this and being a Creator guy myself I have to point out that QObjects should be allocated on the heap and thus you should prefer Qt Creator's way of doing things.

        Welcome aboard by the way... I fully understand why you do not want to go back to MFC by the way:-)

        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