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.6k Topics 35.3k Posts
  • How do I start using qbs with QtCreator to build Qt apps?

    2
    0 Votes
    2 Posts
    944 Views
    sierdzioS
    The standard wizards are still based on qmake, as QBS remains a "smaller brother" here ;) Check out "the docs":http://qt-project.org/doc/qbs-1.2/index.html, they are generally getting better. The developers of QBS are very active and helpful on the QBS mailing list, too. Also, there is a wiki "here":http://qt-project.org/wiki/QBS.
  • 0 Votes
    5 Posts
    1k Views
    T
    I finally just used a std::ostringstream and put in quotes HTML syntax to handle the items to be printed.... It is working now - thanks
  • [Solved] QImage works different on windows.

    9
    0 Votes
    9 Posts
    2k Views
    M
    Thanks for your great advise mcosta. The problem was solved. The problem is completely related to my platforms (mac 64-bit and win 32-bit), I wrote a function that generate random numbers between 1 and N using qrand() like this: @ int random (int a){ double rndgen; int rand; rndgen = qrand(); rndgen/=(0x7fffffff); rndgen*=a; rndgen+=1; rand=rndgen; return rand; } @ And after that i decided how to manipulate data, in my mac it works great but in The Windows random function always return 1 because of RAND_MAX definition, RAND_MAX in 32-bit platforms is equal to 0x7fff but in 64-bit platforms is equal to 0x7fffffff. I've changed above code to this: @ int random (int a){ double rndgen; int rand; rndgen = qrand(); rndgen/=(RAND_MAX); rndgen*=a; rndgen+=1; rand=rndgen; return rand; } @ So the problem get solved :-) There isn't any problem with QImage :-)
  • .pro CONFIG: what to do with a third configuration?

    3
    0 Votes
    3 Posts
    1k Views
    N
    It seems to me very strange that one can't introduce a third configuration behaviour. Also because you can write something like @CONFIG += "localRelease"@ in the .pro, so why can't you define a "localRelease" behaviour?
  • Some QtGui libraries that are in docs , compiler doesn't see [solved]

    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    That can happen ;) You're welcome ! If this answers your question, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
  • Custom deployment

    4
    0 Votes
    4 Posts
    1k Views
    M
    Ok, I found two distinct solutions... FIRST SOLUTION: @ mypackage.files = /path/to/my/files/on/my/pc mypackage.path = /home/root @ In this case the folder "pc" (together with its content) is copied to the target device. SECOND SOLUTION: It is also possible to exploit some undocumented QMAKE functions (as explained "here":http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake#Replace_functions): @ mypackage.files = $$files(/path/to/my/files/on/my/pc/*) mypackage.path = /home/root @ In this case only the files contained in "pc" are copied to the target device (as requested by me).
  • QT Creator 2.8 and custom project folders

    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    No there's not Currently most people use the shadow build option and don't play with this stuff anymore except when they have old not yet ported projects. However I would recommend using shadow builds, this way you don't have any generated files in your source tree and you can simplify your project structure
  • 0 Votes
    4 Posts
    1k Views
    F
    Thank you very much for pointing me there, I added a comment and a vote.
  • Debug doesn't work : inferior stopped, unknown signal

    14
    0 Votes
    14 Posts
    12k Views
    D
    disable reverse debugging and you're gonna be ok
  • Qt Creator - "Build Adapter for current Qt"

    5
    0 Votes
    5 Posts
    2k Views
    E
    I got the same issue, any update about this ???
  • Addition/Increment in .pro file

    2
    0 Votes
    2 Posts
    875 Views
    A
    I am only aware of platform dependent method lilke @NUM = 42 NUM = $$system(expr $$NUM + 1) message($$NUM) @
  • QTableWidget items

    Locked
    2
    0 Votes
    2 Posts
    768 Views
    sierdzioS
    Please do not double-post. I am closing this thread. Please use this "thread":https://qt-project.org/forums/viewthread/42688/ instead.
  • Debugger

    2
    0 Votes
    2 Posts
    596 Views
    A
    It depends on debugger. In gdb you can type "backtrace" to see a call stack and "list" to print a code. I don't know about VS debugger. If you use QtCreator then you should see all info in Debug mode.
  • IsItQt to check if a program is Qt-based and which version Qt was used

    1
    0 Votes
    1 Posts
    852 Views
    No one has replied
  • QtCreator temporarily adds additional include paths?

    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    Same is true for building. Open your project, go to "Projects" pane, then open build settings, and see the last section on the bottom: "Build environment" it contains all the variables that Qt Creator uses to build your project.
  • Squish is not able to access/display some members in Qt/QML class objects

    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi and welcome to devnet, For that question, you should contact froglogic directly since they are the authors of this software.
  • [REQUEST] Nokia Symbian SDK v1.1.2

    1
    0 Votes
    1 Posts
    578 Views
    No one has replied
  • QtCreator Deployment: Why sftp and not scp

    3
    0 Votes
    3 Posts
    4k Views
    G
    on embedded systems it's usually disabled for size reasons. any actual answer to this?
  • [Solved] Qt Creator search: Regular expressions

    3
    0 Votes
    3 Posts
    5k Views
    A
    Yes, this is what I want. Thanks for clarifying.
  • Who can I make a custom wizard work in QTCreator 3.0 and 3.1?

    3
    0 Votes
    3 Posts
    1k Views
    A
    Thanks for the tip - I'll try that.