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
    5 Posts
    5k Views
    D

    this should work I think
    @
    QT -= core gui
    CONFIG += console
    TARGET = helloworld
    TEMPLATE= app
    SOURCES = main.cpp
    @

    About @ tag. When you post code here use @ character before and after your code to highlight it

  • Some questions about Qss

    2
    0 Votes
    2 Posts
    2k Views
    D

    I think a lot of developers use qss (among developers usnig qt of course). Maybe not a lot of apps use huge amount of qss, but small qss stylings are needed in big part of apps.
    About second question. Widgets are marked as done moudle and so no huge new features will be avail there. But if you miss something in qss you can develop it by yourself and request merge into qt5 (and you even can break binary compatibility in this case if you need some really huge feature that does not fit current interfaces).

  • Scratchbox VS simulator

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    14 Posts
    7k Views
    Y

    The thing is how to translate into a ui_*.h file. I mean it isn't really a big deal at all but it isn't direct. I personaly love it but I am just trying to be critical so that we get the best answer for the devs (and one that they hopefully won't shoot down).

    I think that this should be attached as to a bug report as a proposed fix.

  • 0 Votes
    5 Posts
    10k Views
    R

    Thank you, Tobias Hunger,

    You are right about including files in the installation file, but sometimes, as a part of debugging, I want to copy some (latest) parameter files to the same directory as the executable.

    Dependency between projects is another issue, which must be re-entered for each computer.

    Maybe, it is worthy of consideration as a new feature of Qt creator to store the contents of sessions in some file so that users can transfer them just like solution file of Visual Studio.

  • 0 Votes
    8 Posts
    6k Views
    S

    The following "FAQ":http://developer.qt.nokia.com/faq/answer/how_can_i_set_up_my_environment_for_building_qt_qt_applications_with_mingw describes where you can get MinGW and how to build Qt with it.

  • 0 Votes
    9 Posts
    4k Views
    T

    Satmosc: Please just "file bug reports":http://bugreports.qt.nokia.com/ for your issues. If you find out that you did something wrong, then just close them again (or we will close it;-).

  • Question - including .dll into .exe

    9
    0 Votes
    9 Posts
    9k Views
    M

    I have the exact same problem.
    Running a static linked QML application and getting a white window.
    What am I doing wrong ?

    [quote author="Onddo" date="1294847742"]Hi,
    Is the Static linking supposed to work with QML applications as well? I went through the steps mentioned on the link above, the executable builds, but when I run it independently it just shows a white window.

    Thanks![/quote]

  • 0 Votes
    16 Posts
    9k Views
    F

    Just wanted to update that I installed Qt Creator 2.1.0. by building it from source according to: http://slackbuilds.org/repository/13.37/development/qt-creator/

    I had to rebuild debugging helpers in project settings. Now gdb is working fine and I can see Qobjects such as Qstring values in Debug mode. I hope it helps someone in similar situation.

  • 0 Votes
    15 Posts
    4k Views
    K

    The original problem is solved through the subdirs template of qmake.

    Here is the example of my case
    @
    TEMPLATE = subdirs
    CONFIG += ordered
    SUBDIRS =
    ALib
    BLib
    CLib
    DLib
    Applications/Appl1
    @

    Each directory needs a .pro-file with the same name as the directory name is.

  • Problem debugging in 64 bits

    4
    0 Votes
    4 Posts
    2k Views
    D

    I couldn't solve it with qt creator 2.1. I'm using now visual studio, which works pretty well with the add-in. Thanks for the answers!

  • Using replace function

    3
    0 Votes
    3 Posts
    2k Views
    D

    Sorry for bad edition I was meaning:

    @
    myNewVariable = bla bla
    myNewVariable = $$replace(myNewVariable,' ','')
    @
    And indeed this is working but it was a bit more complicated for me as I was using "system" function like this:
    @
    myOldVariable = "Foo Bar Baz"
    myNewVariable = $$system(echo $${myOldVariable} | tr 'A-Z' 'a-z')
    myNewVariable = $$replace(myNewVariable,' ','')
    @
    which prints
    @
    Project MESSAGE: foo bar baz
    @
    but this:
    @
    myOldVariable = "Foo Bar Baz"
    myNewVariable = "$$system(echo $${myOldVariable} | tr 'A-Z' 'a-z')"
    myNewVariable = $$replace(myNewVariable,' ','')
    @
    correctly prints:
    @
    Project MESSAGE: foobarbaz
    @
    But the best way to do the trick for me is like that:
    @
    myOldVariable = "Foo Bar Baz"
    myNewVariable = $$lower($$myOldVariable)
    myNewVariable = $$replace(myNewVariable,' ','')
    @

    It's such a shame that functions like "lower" or "upper" are not documented in the official documentation at http://doc.qt.nokia.com/4.7/qmake-function-reference.html. Is there good reasons for that? For those looking for more documentation about qmake you can have a look at http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake.

  • 0 Votes
    7 Posts
    3k Views
    G

    For our plugins we have this in the .pro. It installs the plugin into the right path, depending on the version it was built with:

    @
    INSTALLS += target
    target.path = $$[QT_INSTALL_PLUGINS]/designer
    TEMPLATE = lib
    CONFIG += debug warn_on qt thread exceptions rtti designer plugin
    @

  • Symbian and maemo missing in Target Options

    7
    0 Votes
    7 Posts
    3k Views
    G

    [quote author="u2bpavankumar" date="1303383293"]Please let me know whether Qt SDK RC 1.1 [labs.qt.nokia.com] works fine on Vista (32 bit system) or not. I could n't run the example programs provided as well. When I try to run, simulator crashes with following message on application output for animatedtiles example

    Starting C:\QtSDK\Examples\4.7\animation\animatedtiles-build-simulator\debug\animatedtiles.exe...
    Waiting for reply from simulator timed out
    Invalid parameter passed to C runtime function.
    Invalid parameter passed to C runtime function.
    C:\QtSDK\Examples\4.7\animation\animatedtiles-build-simulator\debug\animatedtiles.exe exited with code 3

    The same sdk works fine on my colleagues Windows Xp SP3 and he can run all the examples well.

    Has anyone faced such problems in vista?? Please let me know[/quote]

    I have this problem, did you figured out how to solve? thanks in advance

  • 0 Votes
    4 Posts
    2k Views
    G

    I have checked in the Event Viewer:

    When it tries to starts, it shows an information event: The process (simulator.exe) requested the disabling of the desktop window manager. I guess this is when my screen blinks....

    Another information event: Could not start the desktop window manager an running application disabled the composition.

    Error message: Name of the application with errors: simulator.exe........

    I hope this could help to find a solution.....

    Thanks!

  • 0 Votes
    6 Posts
    3k Views
    B

    Hmm sorry, don't think I can help further here :(

  • 0 Votes
    6 Posts
    4k Views
    K

    Andre & Volker thank you - did it in Designer just how I needed it!

  • [Solved] How to get gdb debugger for Windows?

    2
    0 Votes
    2 Posts
    18k Views
    D

    For the record, there are pre-built gdb binaries for MinGW at ftp://ftp.qt.nokia.com/misc/gdb/7.2/

    Also, Qt Creator can debug MSVC compiled binaries, but you need to have Microsoft's "Debugging Tools for Windows" installer.

  • 0 Votes
    6 Posts
    20k Views
    G

    Thanks Tobias:
    Yes, I do understand that the nonexistent / missing files / paths etc. need to be fixed.
    Perhaps you, or anyone could take a look at a issue I'm having in trying to solve that at
    http://developer.qt.nokia.com/forums/viewthread/6155/

    Also, guess I don't understand what is needed for qmake to work?
    I did not mention previously, but, I can build / compile / on the host environment, and run on the OMAP-L138 target some of the qt examples with the current installed environment using the command line i.e.
    cd <directory where the application source is>
    qmake -project
    qmake
    make

    Not sure how that works (me qt nubee) when paths to qmake are incorrect and or non existent as shown above in the ./qmake -query above ?

    Maybe you or ? could enlighten me on how that is working?
    Thanks again!

  • Embedding Qt UI in a browser

    9
    0 Votes
    9 Posts
    3k Views
    G

    By default, ther are no plug-ins for browsers. There was a "QtSolution":http://doc.qt.nokia.com/solutions/4/qtbrowserplugin/ some tiume ago. You can look at that topic. Perhaps it helps. But Qt itself has not Browser plugins available.

    Edit: some seconds too slow.... :-)