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
    3 Posts
    2k Views
    T

    [quote author="Lukas Geyer" date="1327480231"]
    For the one's complement C++ has its own operator

    quint8 hexval_1_complement = ~15; // 11110000(2) 240(10) F0(16)
    quint8 hexval_2_complement = ~0x15; // 11101010(2) 234(10) EA(16)
    [/quote]

    Thank you, I understand!
    Cheers for the examples as well, well appreciated.

    That "Pretty much" solved my problem! I get the right values and answers now.
    But I'v been trying to achieve this using variables.

    eg
    Your push a number in.. stick with 15..that is saved to a variable (An integer)

    Int Number= 15;
    quint8 hexval_2_complement = ~0x(Number);

    That is invalid and does not work (Being Int shouldnt affect?, but replacing with 15 will produce 234, thus can be converted to EA.

    I CAN do
    quint8 hexval_1_complement = ~Number; // 11110000(2) 240(10) F0(16)

    But as noted above it produces 240, which isn't exactly helpful.

    Sounds weird to obtain the int value then use that val as the hex val (as they dont equal each other).

  • Lrelease issues

    2
    0 Votes
    2 Posts
    3k Views
    M

    lrelease creates translations in the QM file only for the strings that are marked as "finished".

    Did you use Qt Linguist to translate your strings? Sorry to ask, but that wasn't clear in your post...

    If not, you might want to check :
    "Qt Linguist Manual for Translators":http://developer.qt.nokia.com/doc/qt-4.8/linguist-translators.html
    and
    "Qt Linguist Manual for Release Manager":http://developer.qt.nokia.com/doc/qt-4.8/linguist-manager.html

  • Qt Creator - Jump to cursor behavior

    3
    0 Votes
    3 Posts
    3k Views
    T

    Thanks! Filing "a bug report":http://bugreports.qt.nokia.com/ once you found a way to reproduce the issue would be appreciated.

  • Qt 5.0 premiere day

    2
    0 Votes
    2 Posts
    2k Views
    G

    Hi,

    this is not the first question regarding this topic in this forum.
    The answer is: you will know when it is out.

    Until now, there was never another answer from the Qt team.

  • 0 Votes
    5 Posts
    5k Views
    S

    I have built Qt 4.7.4 successfully on OpenIndiana using gcc 4.5.1. IIRC I have some issues trying to compile with the Sun Compiler Suite. In any case you will need to specify -no-webkit (and potentially -no-script) to configure to get it to build.

  • 0 Votes
    3 Posts
    2k Views
    T

    Is there really a qmake in /Developer/Tools/Qt? Isen't that usually in a bin subfolder on the Mac? I am no expert there;-)

  • 0 Votes
    7 Posts
    2k Views
    K

    thanks a lot, it worked. I was just messed up with the Quotes

  • 0 Votes
    9 Posts
    4k Views
    T

    Yeah, it is Ctrl-Tab/Ctrl-Shift-Tab... I should have looked it up to make sure before writing this. I use it so often that I am not even sure anymore what the exact key-combos are.

  • 0 Votes
    3 Posts
    3k Views
    T

    Try touching *.ui files and then cleaning the project.

    Make (which is used to decide which parts of the code need to be rebuild) is based on timestamps on the files. If you had your system clock screwed up once that can cause some interesting issues with stuff not getting rebuild properly:-)

  • How do I add a Custom Widget to Qt Creator?

    17
    0 Votes
    17 Posts
    39k Views
    M

    Hi Andre!

    First of all, thanks for your extensive and quick support.

    Sure, I know about the way binaries and libraries in C/C++ work, hence it is clear to me that I cannot build a Windows MinGW (or MSVC) widget and use that in a non-Windows Qt application.

    But, of course, what I CAN do is building C/C++ applications for a specific hardware/OS target and use libraries therein, which are equally built for the same target. That is actually what C/C++ is all about. But here comes the trick with cross-compiling: Both libraries and binaries created (for the same target) are completely independent from the host environment (setting aside the fact, that I need an appropriate toolchain with all includes, binaries, libraries, tools and the like available, which are required for cross-compilation).

    But as you mentioned, I need a Qt Creator IDE which is built with the same (!) toolchain as the widget plugin is built with to make it available to the Qt Designer. Of course, I could cross-compile without using the designer - that would make me independent from the host system (as for plain C/C++ development) as required, but neglect the advantage of sort of WYSIWYG development.

    But probably you're right: In the end, Qt is C/C++ and requires at least basic knowledge of what's going on there - particularly if you want someone to develop for a more "exotic" purpose like cross-compiling for QNX.

    Nevertheless, thanks for all your support.

  • [SOlved] qmake - Console only in debug

    2
    0 Votes
    2 Posts
    5k Views
    J

    Stupid error:
    @# ==== Keep console in debug ====
    contains(MODE, debug) {
    CONFIG += console
    }
    contains(MODE, release) {
    CONFIG -= console
    }@

  • [Move] Linking to ICU library

    3
    0 Votes
    3 Posts
    5k Views
    S

    Thanks Volker - that helps!

  • [Moved] Using Qt Creator with 4.8 RC1

    11
    0 Votes
    11 Posts
    4k Views
    B

    Hi Tobias,

    After installing QtCreator latest version my Qt 4.8 system installation was not detected on OS X Lion.

    I think QtCreator user preferences got corrupted by the update process.

    I did not file a bug report for that.

  • Qt / VSTools on Visual Studio 11

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    9 Posts
    3k Views
    V

    I see, thank you for explanation Tobias.

  • Error on integrating online Doc to the Creator

    4
    0 Votes
    4 Posts
    2k Views
    S

    Ok guys, thats what I expected.

    Too bad it would be really cool to integrate the online documentation with its new features into the QtCreator.
    Maybe it will be possible in the future.

    Thanks for your reply...

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED]Qt Linguist easy?

    3
    0 Votes
    3 Posts
    2k Views
    T

    Thank you very much.
    This worked perfect when I used the qm file.

  • 0 Votes
    4 Posts
    3k Views
    M

    Well that sounds helpful. Thank you :)

  • Qt VS Add-in Integrated Help.

    10
    0 Votes
    10 Posts
    7k Views
    O

    Ok! I will watch that bug-report link to see what happens.