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
  • Refactoring: extract method

    4
    0 Votes
    4 Posts
    3k Views
    A

    Would be useful functionality though! Please at least file a suggestion for it at the "issue tracker":http://bugreports.qt.nokia.com, so the suggestion isn't lost. The forums are not the best place to store these things.

  • 0 Votes
    7 Posts
    3k Views
    S

    Thanks for adding! It would be of help for people searching through threads! ;-)

    And welcome to Qt Developer Network! :-)

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Using C# inside the Qt IDE

    8
    0 Votes
    8 Posts
    19k Views
    F

    I suggest you to try monodevelop or eclipse for c#. For accessing to Qt widgets from c# you need a mono binding, I don't know if this exists.

  • Delete entire line on search and replace?

    5
    0 Votes
    5 Posts
    5k Views
    G

    Ah, sorry. Actually it is Shift-Delete.

  • Cannot link statically with MSVC2008.

    21
    0 Votes
    21 Posts
    8k Views
    G

    [quote author="Gerolf" date="1320747501"]which version of redist?
    debug redist are never installed!
    use the release build on that machine and it should work.
    Debug versions are never meant for distribution...[/quote]

    Not only that they are not meant for distribution, but Microsoft does not allow you to do so!

  • 0 Votes
    4 Posts
    3k Views
    T

    Please feel free to contribute a patch to fix this:-) The cmake plugin is unfortunately not seeing enough love.

  • 0 Votes
    35 Posts
    11k Views
    L

    This work for me:

    TEMPLATE = subdirs
    CONFIG+= ordered
    SUBDIRS += Service/Service.pro
    SceneManager/SceneManager.pro
    Apollo/Apollo.pro

    But i had problens with debug and release modes :(

  • 0 Votes
    6 Posts
    5k Views
    Q

    :) Yes, I did mean to change the backgroud color.
    Thanks a lot, though it is still not yet functioning.
    I'll try to figure it out.

    [quote author="Andre" date="1320656176"]Well, you are the only one who knows of what you want to change the color. If that is the background color, then that is the background color. If it is the color of an item on the view, then do that.

    If you want to change the background color, you could do something like this:
    @
    //in your header

    Q_OBJECT // do not forget this one in the private section of your class declaration

    private slots:
    void RGB_RGBView();

    //in your implementation file:
    void MyClass::RGB_RGBView()
    {
    QColor color = QColor::fromRgb(
    ui->RRGB->value(),
    ui->GRGB->value(),
    ui->BRGB->value() );
    ui->GraphicsView->setBackgroundBrush(color);
    }
    @

    moderator note: Instead of creating a new post to make corrections, please just edit your previous post instead.[/quote]

  • Qt Creator debugger in Ubuntu

    15
    0 Votes
    15 Posts
    9k Views
    I

    "QTIFW-66":https://bugreports.qt.nokia.com/browse/QTIFW-66

  • 0 Votes
    6 Posts
    3k Views
    A

    You could try compiling from Qt console (from the start menu -> QtSDK -> Desktop -> Qt 4.7.4 for Desktop (mingw) ) also running as administrator.

  • Avoid Visual Studio 2008 Project Conversion

    5
    0 Votes
    5 Posts
    3k Views
    G

    qmake seems to create vc 2005 project files which are then converted to 2008. This direction works, the other does not work, perhaps that's the reason.

    But in MSDN, you can find how to convert vcproj files via script from 2005 to 2008.

  • What does Moc.exe do?

    3
    0 Votes
    3 Posts
    9k Views
    K

    I cant believe I couldnt find that page.. Thank you !!

  • 0 Votes
    3 Posts
    12k Views
    W

    [quote author="Franzk" date="1320248553"]Not as far as I know. The debugging working path is stored in the .vcproj.SOMEUSER.user file. You can try and see what happens if you copy the .vcproj.SOMEUSER.user to .vcproj.user. A bunch of defaults are then read from that file.[/quote]

    Thats cool. I just tested it with the working directory and it worked well, thanks :)

  • 0 Votes
    3 Posts
    13k Views
    W

    Nope, its not the DESTDIR or OBJECTS_DIR variable

    DESTDIR: Properties -> Linker -> General -> Output File
    OBJECTS_DIR: Properties -> General -> Intermediate Directory

    I need the "Output Directory" or VS $(OutDir) Variable

    Thanks

  • Osx weak link framework/dylib

    3
    0 Votes
    3 Posts
    3k Views
    M

    Thanks. I was just about to post my findings and found your answer. :)

    After diving into this I would have asked a different question of how to lazy load a shared library. I want strict linking on the symbols but to load the library only when needed. Also I apologize for not looking at the ld man page before asking this question (didn't occur to me); maybe it will save someone down the road some time. :)

    With that said, for those interested this is how to lazy load a shared library on osx:

    @-L../mylib/dir/ -lazy-lmylib@

    Thanks again!

  • Determine QMAKESPEC

    3
    0 Votes
    3 Posts
    3k Views
    O

    I have a pro file that executes qmake for 2 other projects (my project is NOT subdirs). I need them to be executed with the same mkspec the parent project was run with. Is there a way to do that?

  • 0 Votes
    7 Posts
    6k Views
    G

    No, it cannot be added easily. Designer does not know of the use of your form.ui file at all - which is a good thing™. You might want to use it in a QUiLoader which doesn't have that surrounding class, etc. It would only work with a very limited use case of the forms and I'm not convinced whether it's worth the effort.

  • Make Build Error in Windows.

    4
    0 Votes
    4 Posts
    7k Views
    U

    It's been a while, but this problem still persists. If you delete the original *.pro.user file then import project, this problem is still there.

    The trick is to enable shadow build in the Target setup screen when importing the project. This will create separate target directories which appear to be expected by the deplyment script.

    Hope this will help somebody.

  • 0 Votes
    3 Posts
    3k Views
    S

    Perfect, thanks!

    Rakesh