Skip to content

Qt Creator and other tools

Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.4k Topics 34.5k Posts
  • 0 Votes
    2 Posts
    2k Views
    L

    Just create 2 .pro files (you can put options that are shared in a .pri file and use include()) and adjust $$DESTDIR and all directories that will contain intermediate files that are different between the two versions:
    @
    MOC_DIR
    OBJECTS_DIR
    RCC_DIR
    UI_DIR
    QMAKE_MAKEFILE
    @

  • Custom plugin for Qt Simulator

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Setup Wizard Solution

    10
    0 Votes
    10 Posts
    6k Views
    M

    Tnx All for the help!

  • 0 Votes
    11 Posts
    3k Views
    T

    Have you checked the "documentation":http://doc.qt.nokia.com/qtcreator-2.2/creator-project-generic.html?

    Is there something in it that is not clear? How can we improve it?

  • QtCreator subdirs vs. libraries

    2
    0 Votes
    2 Posts
    3k Views
    L

    I would suggest to have a lib dir somewhere in your build tree and specify $DESTDIR for the lib accordingly. Then you can be sure that the lib will be in that directory, regardless of the platform. Also, I case you didn't know, you can use CONFIG += ordered to make sure your the subdirs are built in the order you specify (i.e. you lib is built first).

  • 0 Votes
    23 Posts
    17k Views
    M

    Good deal! Be sure to change the title of the thread to add [Solved] if everything is working now.

  • Compile qrc to rcc in Creator

    4
    0 Votes
    4 Posts
    5k Views
    L

    You might be able to do something using "this":http://doc.qt.nokia.com/latest/qmake-environment-reference.html#customizing

  • 0 Votes
    8 Posts
    10k Views
    EddyE

    Well done!

    thanks for sharing.

    Could you edit your title and add[Solved] in front of it?

  • Using the debugger

    3
    0 Votes
    3 Posts
    2k Views
    M

    Hmmm I have this view enabled but I don't see it :/

  • 0 Votes
    3 Posts
    2k Views
    D

    Moved to Tools category.

  • 0 Votes
    9 Posts
    5k Views
    R

    I had the same problem and finally got a solution to it.

    I have both commercial and opensource version of Qt 4.7.3 on my PC.
    I compiled the commercial version by myself using such the follow command:
    configure -debug-and-release -platform win32-msvc2010 -commercial -fast -nomake examples -nomake demos
    the opensource version is already compiled.

    I tried to build my project but the QT_NO_DYNAMIC_CAST flag in Makefile breaks it. However it works fine when i build it with the opensource version.

    At first thought it was a problem of qmake.exe because i copied the qmake.exe from the opensource version into the commercial version and it worked just ok!

    I tried to recompile qmake.exe and failed.

    finally i compared all the content between the two version and find a file named qconfig.pri in /mkspecs/.
    i copied it into the commercial version and the problem's gone.

    the file content is as below:

    CONFIG+= debug shared stl exceptions rtti mmx sse sse2
    QT_ARCH = windows
    QT_EDITION = FullFramework
    QT_CONFIG += release debug zlib png accessibility qt3support opengl s60 ipv6 script scripttools xmlpatterns multimedia audio-backend declarative native-gestures svg minimal-config small-config medium-config large-config full-config
    #versioning
    QT_VERSION = 4.7.3
    QT_MAJOR_VERSION = 4
    QT_MINOR_VERSION = 7
    QT_PATCH_VERSION = 3
    #Qt for Windows CE c-runtime deployment
    QT_CE_C_RUNTIME = no
    #Qt for Symbian FPU settings

    Hope this will help anyone who has the same problem.

  • Build PokerTH code with Qt Creator on Windows!

    3
    0 Votes
    3 Posts
    4k Views
    C

    Link boost & curl libraries in your pro file if you already build them on Windows 7.

  • 0 Votes
    4 Posts
    4k Views
    B

    EDIT: FIXED
    I decided to post this in the event that this comes up again. Currently (as of today's date) 4.7 is the stable tree.

    Download the Qt 4.7-Stable Source Run qt-qt/configure Select the Open Source version, and agree to the license after reading it. Use configure tool to enable databases. Build with @gmake@ and @gmake install@
    *EDIT: Also soft link from your built plugins to $QTDIR/Desktop/Qt/473/gcc/plugins/sqldrivers/

    Obviously there isn't the src tree to build the drivers in the first place from the SDK .bin file I originally downloaded. If someone else can chime in that it SHOULD be there and I was right to think the documentation applied to the SDK download from the main website I'll file the proper bug report. If I was wrong and the src download is treated different I'll shush up, but only having a SQLight driver is pretty limited.

    Thanks Qt devs for a great product, I think I'll stick to building from sources. I appreciate you making them easily available on gitorious! For people who don't know where to find them, click "Qt 4.7-Stable":http://qt.gitorious.org/qt/qt/trees/4.7-stable

  • Unable to change Toolchain in QtCreator

    7
    0 Votes
    7 Posts
    10k Views
    D

    Thanks Tobias :)
    I wish I could contribute, unfortunatelly I'm very noob in C++ :(.
    Anyway great work and keep it up guys ;)

  • QtCreator 2.2.1 don't load DLLs

    3
    0 Votes
    3 Posts
    2k Views
    L

    "You do.":http://goo.gl/FNXv9

    bq. Windows then searches for the DLLs in the following sequence:

    The directory where the executable module for the current process is located. The current directory. The Windows system directory. The GetSystemDirectory function retrieves the path of this directory. The Windows directory. The GetWindowsDirectory function retrieves the path of this directory. The directories listed in the PATH environment variable.
  • CMake moc.exe and Paths - "\" "/"

    2
    0 Votes
    2 Posts
    3k Views
    M

    I just found out that the "/" is replaced automatically to corresponding OS' pathseperator; here ""
    I just wrote my header1-3.h files into the CMakeList.txt, which is located in path1/project2/ by adding there:

    @

    list all class files which implement Q_OBJECT

    QT4_WRAP_CPP( ${PROJECT_NAME}_MOCS
    OldHeader.h
    Header1.h
    Header2.h
    Header3.h
    )

    @

  • Several questions with QtCreator [Solved]

    5
    0 Votes
    5 Posts
    3k Views
    L

    Forgot to mention one thing. To instruct qmake to not do anything Qt-spcific, you can/should also add:
    @
    CONFIG -= qt
    @
    to your .pro file

  • Radio Button - Qt designer and QGis

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • 0 Votes
    3 Posts
    7k Views
    AlicemirrorA

    Thank you very much Vijay, it is a good test.

    What it is needed is to define the (theme) property once and apply it in many different loader instances. The alias assignement do the opposite as I have interpreted: you assign a alias for every instance, that is what I avoid. It is possible that I have misunderstood this method ?

    The real solution I missed probably is Component.onCompleted { ... } This can be the reason of the parameter is not passed correctly.

  • How To Make Comments in Qt's Intellisense?

    4
    0 Votes
    4 Posts
    4k Views
    A

    Whishes uttered on this forum will probably get lost. If you want to submit a feature request, use "Jira":http://bugreports.qt.nokia.com instead.