Skip to content

Brainstorm

Stuck? Some ideas just need to be dumped on someone before they can materialize.
440 Topics 3.2k Posts
  • 0 Votes
    14 Posts
    7k Views
    SGaistS

    Remote GDB ? Can be tricky indeed.

    When starting your application are your giving it the input module it should load as parameter ?

  • TreeModelView with (Realtime) Options

    5
    0 Votes
    5 Posts
    2k Views
    T

    Thanks for the input.

  • Qt-API for Speech recognition

    21
    0 Votes
    21 Posts
    21k Views
    P

    https://github.com/dconroy/PiTranslate/blob/master/text-to-translate.py

    It works pretty good, but it's python.
    I think it can't be so hard to program this in c...

  • How to write and read a QList with binary files

    16
    0 Votes
    16 Posts
    8k Views
    M

    When you want to write/read a QList using operator>>()/operator<<(), as the doc says, the type of the QList must also implement the SAME operator.

    Which means that except Qt's included types (quint, QString, QByteArray, ...), you need to provide such an operator for your type.

    I see you have provided one, and you're pointing out a problem when using it on another QList (line 8: list->register). Is there a stream operator defined for the type of element in list->register ?

  • Qt Help Project from Windows to Linux

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • EventHandling

    13
    0 Votes
    13 Posts
    4k Views
    SGaistS

    What does a run through the debugger tells you ?

  • 0 Votes
    3 Posts
    2k Views
    A

    I fully agree with SGaist, at this point I suggest you to search for sqlite-cipher that is made with crypto in mind!

  • Error: Qt to be configured with -opengl

    5
    0 Votes
    5 Posts
    3k Views
    N

    Hello,

    Thanks for your valuable reply .

    so you mean to say the specifics of wandboard doesnt allow the open gl (sample code framebuffer2) can't be run at all.

    if I wanna make it run for wandboard. what do I need to change in the setup so that the framebuffer2 code can run

    Thanks
    Nilesh Kokane

  • QByteArray read only 4 Byte from Arduino

    12
    0 Votes
    12 Posts
    7k Views
    jensen82J

    I recommend to use the RS232-Protocol and use STX and EOT to define data packets.

  • Not sure how to get started.

    2
    0 Votes
    2 Posts
    1k Views
    P

    Hi.

    I'd suggest you to start with the QGLWidget as a viewport. This will allow you to draw your 3d objects. You'll need to implement all the Drag and Drop events (dragEnterEvent, dragLeaveEvent, dragMoveEvent and dropEvent).

    I also suggest you to use a QMainWindow with dockable widgets from where you can grab your assets and drop them in your 3D viewport.

    I implemented something similar in my own image editing application:

    https://www.youtube.com/watch?v=ow8hd_vfUX8

    Good luck with your game!

  • 0 Votes
    3 Posts
    2k Views
    J

    Thanks for your reply

    I will follow your advice and keep all sources in English. Assuming that in most of the cases a change in source code also implies a change in other languages the the use of keywords doesn't bring much advantage...

  • Merging multiple Qt projects into one?

    2
    0 Votes
    2 Posts
    3k Views
    A

    You need to create a "subdir":http://qt-project.org/doc/qt-5/qmake-variable-reference.html#subdirs "project":http://qt-project.org/doc/qt-5/qmake-variable-reference.html#template
    @
    TEMPLATE = subdirs

    SUBDIRS =
    MainWindowDir
    Dialog1Dir
    Dialog2Dir
    ...
    Dialog11Dir

    if there is a dependency between subproject then

    CONFIG += ordered
    @

    Put your current .pro files in the corresponding subdirs (MainWindowDir, Dialog1Dir, etc)

    QtCreator has "New project" wizard to create a "Subdir Project" in the "Other Project" list.

  • Multi Threading, pause and resume?

    2
    0 Votes
    2 Posts
    4k Views
    JKSHJ

    Hi,

    It really depends on what you want to do in the other thread, and how you've structured your program.

    I recommend you start by reading "Multithreading Technologies in Qt":http://doc-snapshot.qt-project.org/qt5-release/threads-technologies.html -- it compares all the different ways to use threads in Qt.

    If your program can use the map/filter/reduce pattern, Qt Concurrent provides pause/resume functionality.

    [quote author="Jeroi" date="1400188871"]Since I don't seem to find proper knowledge either on google or in IRC[/quote]Did you check Qt's official documentation?

    http://qt-project.org/doc/qt-5/qtconcurrent.html http://qt-project.org/doc/qt-5/examples-threadandconcurrent.html
  • Transparent & blur

    7
    0 Votes
    7 Posts
    8k Views
    Q

    Thank you deadbird :)

  • 0 Votes
    3 Posts
    3k Views
    W

    Thanks, Jens,

    I posted this same question on StackOverflow. A couple of suggestions
    from one commenter, (plus about 10 hours of banging my head against
    my keyboard) and I actually came up with a fairly painless way to achieve
    this that avoids using the id AND avoids making any assumptions
    about the internal ancestry of a delegate.

    Rather than duplicating the solution here, you can read about it there:
    "Anonymous Access To TableView.":http://stackoverflow.com/questions/23522186/qml-how-to-anonymously-access-to-tableview-from-within-delegates:

    It's not quite as straightforward as the exposure of the model to the
    delegate, but it's pretty close.

    wahynes

  • [solved] Console here

    5
    0 Votes
    5 Posts
    2k Views
    SGaistS

    The shadow build directory can be set anywhere you want but not in the sources (that would defeat the purpose)

    You're welcome !

    Since it's all good now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

  • Newbie Problems - Android Hello World

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED]QPixmap on click checking

    7
    0 Votes
    7 Posts
    3k Views
    L

    I see.

    Thank you for help!

  • [SOLVED]Project something not working

    6
    0 Votes
    6 Posts
    2k Views
    L

    I corrected in the .pro file. Thank you!

  • [SOLVED]QStringList index problem

    3
    0 Votes
    3 Posts
    2k Views
    L

    [quote author="Clochydd" date="1397405737"]Hi, it will work with an integer variable as well.
    Make sure, your variable has a content which is represented in your QList - you may want to test it with qDebug() << i;[/quote]

    It's working. The for loop is running 0-5, but the data for QStringList have 0-4.

    Thank you for helping!