Skip to content

Brainstorm

Stuck? Some ideas just need to be dumped on someone before they can materialize.
455 Topics 3.2k Posts
  • Changing Translator source text affects all translation files

    3
    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 :)
  • QML-How-to? Anonymous Access To TableView From Within Delegates

    3
    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!
  • [SOLVED]MYSQL query not working

    5
    0 Votes
    5 Posts
    2k Views
    EddyE
    You're welcome, Please edit the title of your first post and prepend [solved] to it so that others can see easily it in the overview.
  • Can I make own file system access with QFileSystemModel?

    10
    0 Votes
    10 Posts
    9k Views
    J
    It looks like this was never answered. It's strange to me that QAbstractFileEngine was taken out considering Android "assets:" was added, "qrc:" has always been around, and it would be a really seamless way to integrate many things that just can't be integrated at the OS level when you don't have full control over the machine. How is it a "design flaw" to have this interface? Is GDAL VSI flawed? I think that's a matter of opinion, but the fact remains that many libraries have to work with both file and memory APIs. If a library is based on Qt, it would be nice to be able to make an abstract file system and be done with integration.
  • [Moved] qteacher or so

    6
    0 Votes
    6 Posts
    4k Views
    G
    Thank you alot. I will write you.
  • [Moved] Web server in Qt

    6
    0 Votes
    6 Posts
    8k Views
    V
    I built one library called Tufão: https://github.com/vinipsmaker/tufao
  • Qt SDK

    12
    0 Votes
    12 Posts
    7k Views
    JKSHJ
    Hi chethan7845, Please post your question in a new thread. It is completely unrelated to this one.
  • Data and Picture viewer tool

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • LGPL licensing questions

    6
    0 Votes
    6 Posts
    4k Views
    SGaistS
    AFAIK currently, on iOS the libraries are built statically. It's at least the result of the default build
  • Qt - OpacityMask does not work properly

    3
    0 Votes
    3 Posts
    6k Views
    S
    I found the problem! Your mask object size must be same as source object. See a sample: @import QtQuick 2.1 import QtGraphicalEffects 1.0 Rectangle { id: root width: 600; height: 450 Rectangle { id: sourceObj anchors.fill: parent Column { anchors.centerIn: parent rotation: -13 Text { text: "Iran advancing science" font { family: "Segoe UI Light"; pixelSize: 32 } } Text { text: "Persia was a cradle of science in earlier times. "+"<br/>"+ "Persia contributed to the current understanding of nature, "+"<br/>"+ "medicine, mathematics, and philosophy. Persians made important "+"<br/>"+ "contributions to algebra and chemistry, invented the wind-power "+"<br/>"+ "machine, and the first distillation of alcohol. " font { family: "Segoe UI Light"; pixelSize: 12 } } } color: "skyblue" visible: false } Rectangle { id: maskObj color: "transparent" //Notice! i want to mask only non-transparent area! anchors.fill: sourceObj //Size must be same as sourceObj Rectangle { id: realMask //<----- This is my real mask width: 313; height: 72 anchors.centerIn: parent color: "red" radius: 36 } visible: false } OpacityMask { id: myEffect source: sourceObj maskSource: maskObj anchors.fill: parent } } @ Good luck!
  • General direction question: OpenGL/Qt Quick

    3
    0 Votes
    3 Posts
    2k Views
    J
    Thanks for taking out time to help
  • Just a transformation of coordinates

    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, Sounds like a feature request to me :) If you think it might be a good idea, you can always fill a feature request on the "bug report system":http://bugreports.qt-project.org Or even better, if you already use Geotrans, you could try to give it a nice Qt interface and submit it to the Qt project