Skip to content

Brainstorm

Stuck? Some ideas just need to be dumped on someone before they can materialize.
438 Topics 3.2k Posts
  • How to Add Menus in QTabBar in QTabWidget

    4
    0 Votes
    4 Posts
    5k Views
    ?

    yes felix, the same is approach is taken in the example I mentioned

  • Out of memory handling

    6
    0 Votes
    6 Posts
    4k Views
    L

    Question : if you just don't have the required memory, can you do something to prevent the crash? Something like:

    send a warning to the user "you should save your data... memory shortage coming soon... crash following" release unused objects... is impossible in most of the cases manage by yourself an of the core strategy (hand made HD swap) ...

    In most cases, you don't need to wait until the last kb is used. Allocation tests can be performed on big allocations and the turnaround strategy (if any) can be started when more than 80% is used.

  • Qt and zlib.

    8
    0 Votes
    8 Posts
    24k Views
    Y

    Excellent resource list.

    Thank you guys

  • [Solved] QHash inside QHash

    3
    0 Votes
    3 Posts
    5k Views
    Y

    Thank you so much for such a quick answer.

  • Third party lib : Best way

    7
    0 Votes
    7 Posts
    8k Views
    Y

    @Can we use *.a files(lib) on windows based project.@

    No we can't we've to use lib

    Problem solved :)

  • Transparency in Index8 QImage

    3
    0 Votes
    3 Posts
    3k Views
    G

    I have a follow on question about data sharing and a QImage.

    If I create the QImage from a pointer to a unsigned char in memory (and a width and height argument), is it possible to change the pointer withing deleting and re-creating the QImage? Data sharing seems to say that it doesn't copy the data until you try to write to it (which I won't do).

    I have a circular frame buffer of images that are being filled by the camera. In my paintevent method, i'm currently creating and destroying qimages.. Would it be faster to re-assign the memory location to the image data? Is that possible once the qimage has been created?

    I'm new to the use of this data structure and want to make sure I'm using it as intended.

    Thanks!

  • QT application within a Rich Client Platform

    11
    0 Votes
    11 Posts
    8k Views
    ?

    good luck with that and keep us posted how it goes :)

  • Thread-safe singleton

    4
    0 Votes
    4 Posts
    4k Views
    L

    [quote author="SABROG" date="1282146241"]Why reference to T must be const, what if user want change internal state of class?[/quote]

    Yep, you are right. My fault.

    [quote author="SABROG" date="1282146241"]call_once it's thread-safe alternative for Double-Checked Locking pattern.[/quote]

    I read about it :). What I meant is towrite just a few words of description on that page, so there is not just naked code.

  • QPlainTextEdit : Make block readonly?

    12
    0 Votes
    12 Posts
    8k Views
    Y

    bq. Yes you can. E.g. for all non editable blocks use QTextBlock::setUserState() and give them 666. Then reimp keypress event or install an event filter and check if the cursor is in a block where the user value is 666. If so, don't propagate the event. That's all.

    I'm looking for something like this. Cheers :)

    "Original":http://www.qtcentre.org/threads/32609-a-Readonly-Highlighted-TextBlock-in-QTextEdit?p=151542#post151542

  • Spooky Qt Event Loop

    6
    0 Votes
    6 Posts
    4k Views
    V

    Thats true, Let me reproduce that with code, will raise a bug

  • QTCreator Build and Run

    5
    0 Votes
    5 Posts
    4k Views
    ?

    yes this would be useful

  • Spanish translation of Qt documentation

    3
    0 Votes
    3 Posts
    4k Views
    D

    Hello,

    We have started a project of that kind for French: translation of the Qt 4.4 tutorial, some Qt Quarterlies, some Qt Labs, then a bunch of doc. We are using SVN for the first projects; for the doc, we used a totally different system: a DokuWiki, with a tool for importing pages from the doc (written by ourselves). We used a wiki rendering plugin to create the pages we serve to our visitors (basically, a PHP script calling the rendering engine and writing the result in a file).

    Why DokuWiki? It does not use any database, so is easily hackable in every chunk of code. Also, it has a plugin system that makes writing new rendering engines really easy (for the other kinds of plugins, we're doing it ... well, not so beautiful a way).

    Where you will have problems is pages you don't have translated. What we are doing is downloading it from Nokia's servers, then do some hack to have it render well in our template, and eventually cache it - it costs several seconds for pages like QWidget!

    Also, there were things we did not like in the Qt doc: for example, you cannot ask for the page

    http://doc.qt.nokia.com/4.6/QObject

    You're given a 300 error - with a PHP redirector and a .htaccess file, we translate this URL to the file we have.

    In practice, this is what it looks like: http://qt.developpez.com/doc/. If you want further details, just ask ;).

  • 0 Votes
    3 Posts
    5k Views
    M

    Hi

    Thank you for the pointer for Qt 4. If we move forward I can look at that.
    I found an old entry in a www.qtcentre.org forum that says Qt 3 QTable does not support spanning columns which is what I ultimately need to do.
    There is a third party widget QicsTable that should do the trick and I think it is still available for Qt 3.

    Thanks for the help.

    Maryann

  • 0 Votes
    5 Posts
    4k Views
    S

    Yes, the problem was in converting to Unicode. Thank you, Sabrog.

  • Qt and DDD

    6
    0 Votes
    6 Posts
    5k Views
    M

    Chris, I'm also very interested about this topic. I haven't done much DDD myself but I have read about it and done some toying.

    One thing I toyed with was to create a Repository to fetch entities (json-objects from the internet). I found it hard to use QNetwork because the asynchronous nature of the module. Repositories are often modeled to return an entity and the entity can then be used to traverse the children etc.

    Do you have any examples I can take a look at?

  • Qt: open testing infrastructure

    6
    0 Votes
    6 Posts
    3k Views
    W

    Hi Alex,

    [quote author="AlexBravo" date="1278816665"]Robin, it would be nice if you could turn the link in your first post into an actual link. It would be nice if more people could read your post.[/quote]

    Just because you asked so nicely.. done :)

    [quote author="AlexBravo" date="1278816665"]When you say
    > Qt internally use a similar system, but theirs is not (yet?) public.

    Do you know of any plans of them opening it? Last time I talked to Thiago about it, he was not indicating any such plans. It was about 9 months ago though...[/quote]

    It will have to be, sooner or later. I suggest you read up on the discussions about open governance:
    "Thiago's initial announcement of open governance":http://labs.trolltech.com/blogs/2010/06/03/qt-and-open-governance/
    "Open governance mailing list announcement":http://labs.trolltech.com/blogs/2010/07/02/open-governance-mailing-list/

    If you're interested in shaping the future of Qt, I suggest you get involved there.

    Essentially, Qt is moving towards being an open driven project, and as a result, the open infrastructure I talked about is going to have to happen.

    The work I did on testing infrastructure for merge requests is also being worked on by some people at Nokia, so I've largely decided to not reinvent the wheel, and instead, to fit in with their efforts.

    See:
    "torarne's buildbot project":http://github.com/torarnv/buildbot

  • Cast to (void) type

    4
    0 Votes
    4 Posts
    5k Views
    M

    [quote author="SABROG" date="1275748540"]
    2Web Community Manager: quotes and code syntax highlighter are broken (artefact ';' after argument of method) :`([/quote]

    We're on it, thanks.

  • Torrent downloader with web interface

    3
    0 Votes
    3 Posts
    5k Views
    U

    Maybe I can help with the web interface part. I know HTML, CSS, and a little JavaScript.