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. Qt Examples run in QtCreator but not in VS2005
Forum Updated to NodeBB v4.3 + New Features

Qt Examples run in QtCreator but not in VS2005

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

    Hello,

    I am having some trouble trying to run a QML based Qt Example (from the examples directories) in Visual Studio 2005.

    This is what I have:
    *A compiled source code in VS2005.
    *VS Addin to open .pro
    *Qt Examples obtained from the Qt SDK installation

    What I am doing is that I open VS2005 and through the Qt Addin I chose the option to open a Qt Project File(.pro), then the Solution is loaded into Visual Studio.
    Later, I build the solution succesfully using Debug/Release (Both builds just fine).

    And when I try to run the solution example I just get a Window (with the Maximize, Minimize and close buttons) and the application backgorund is in blank, totally a white background.

    Now If I try to open, build & run the same example using Qt Creator this builds&Runs like a charm.

    Any Ideas ?
    thanks in advance

    In short, software is eating the world.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Do you use also msvc2005 as tool chain with creator?
      If yes, you need to check for differences in compile settings.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qnoobish
        wrote on last edited by
        #3

        [quote author="koahnig" date="1346780729"]Do you use also msvc2005 as tool chain with creator?
        If yes, you need to check for differences in compile settings. [/quote]

        What do you mean? I think I don't understand the part of the "tool chain with creator".

        I am just opening the .pro in VS2005 through the AddIn, wait for the adaptation to VS and then Build & Run.

        Maybe I must check the compile settings inside VS2005 project and compare it to the compile settings in Creator.

        Thanks for your reply.

        In short, software is eating the world.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Qt creator is just an IDE and may be used with different tool chains (compiler, debugger, etc). An SDK installation of Qt creator typically comes with the Mingw tool chain. That is part of the package. However, some people like to use Qt creator with the compiler, linker and stuff from msvc. For the latter case you would basically use the same compiler and linker with two different IDEs. The only logical difference should be the compile settings used.

          Vote the answer(s) that helped you to solve your issue(s)

          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