Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Space detection

    4
    0 Votes
    4 Posts
    2k Views
    G
    To me it looks like a bug. I would create a "Jira":http://bugreports.qt.nokia.com/secure/Dashboard.jspa issue for it.
  • TcpSocket need to disconnect after response??

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    T
    Closing this thread, please stick with your original thread.
  • Drag&drop with custom cursor

    4
    0 Votes
    4 Posts
    4k Views
    T
    It seems that the only way is to create another widget and move it in dragMove event. Haven't tried it yet but seems like a fine solution.
  • 0 Votes
    8 Posts
    7k Views
    F
    Heh, nice analogy. In my experience model/view selection handling can be a huge sword with a morning star at the butt end if you're not careful. I do like the framework though. Edit: removed the link to http://en.wikipedia.org/wiki/Morning_star_(weapon) because I couldn't hide it neatly.
  • How to create QDialog using Qt creator

    2
    0 Votes
    2 Posts
    4k Views
    EddyE
    i guess you already have a project with a .pro file, headers and sources and you want to add an additional dialog with associated header and source file? ok in this case what you can do is the following : file > new file or project > on the left under files and classes select "Qt", then you can choose on the right for "Qt designer form class". this will generate ui, h and cpp files for you and will add everything in your pro file.
  • Restoring previous session of an application

    41
    0 Votes
    41 Posts
    14k Views
    G
    Hi, QSettings is used indirectly in the examples of Qt docs, e.g. in "Main Window examples":http://doc.qt.nokia.com/4.7/mainwindows-application.html for storing application settings: [quote] @ void MainWindow::readSettings() { QSettings settings("Trolltech", "Application Example"); QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint(); QSize size = settings.value("size", QSize(400, 400)).toSize(); resize(size); move(pos); } void MainWindow::writeSettings() { QSettings settings("Trolltech", "Application Example"); settings.setValue("pos", pos()); settings.setValue("size", size()); } @ [/quote]
  • Including a self-made library into another project

    2
    0 Votes
    2 Posts
    2k Views
    C
    LIBS += -L../../bin/ -lMyLibrary
  • 0 Votes
    5 Posts
    3k Views
    A
    And don't forget to set quitOnLastWindowClosed as false.
  • 0 Votes
    3 Posts
    2k Views
    S
    Looks like it's my fault, so Qt is the best.
  • QDomDocument formatting

    3
    0 Votes
    3 Posts
    3k Views
    G
    No, it is not supported to be output the way you suggested.
  • How to perform some action on checking or unchecking the checkbox..

    5
    0 Votes
    5 Posts
    6k Views
    A
    Trying another approach to the same problem, is no reason to start a new topic. Indeed, I did suggest that you don't use the Q3 support classes in new code, and I stand by that. You were also "suggested":http://developer.qt.nokia.com/forums/viewthread/6242/ to take a look at using a QFileSystemModel with the CheckableProxyModel class. You did not even respond to that route. Is there any reason you can not use that method? What is wrong with it? If you want to immediately respond to changes to the check state of your model's items, you will need to either modify (subclass) your model, or insert a proxy model. Either way, you can add a signal checkStateChanged(QModelIndex index, Qt::CheckState state) that you can emit from the setData() method of the model or proxy if that role is being changed. Of course, that would only work for when that is done from the view (or at least, through the setData interface of the model), but that would probably be enough for you. You'll need to emit that signal when the CheckStateRole is set. Note that the CheckableProxyModel mentioned earlier just gives you a signal checkedNodesChanged() that tells you something happened.
  • Qt Static build, issue with QtCreator (related to ABI detection)

    12
    0 Votes
    12 Posts
    10k Views
    T
    Feel free to open a new bug or reopen an existing one:-)
  • [SOLVED]can not declare QIcon in class?

    11
    0 Votes
    11 Posts
    4k Views
    V
    i thought that i had done that, but clearly not
  • Qt OpenGL and threads

    9
    0 Votes
    9 Posts
    7k Views
    L
    Thanks LiamMaru, I have already try to use the same OpenGL context in different thread, but I have forgotten to call : QGlContext::doneCurrent() in the main GUI thread and I had some crash. I will try it as soon as possible. But, when using the same OpenGL context in another thread, it will not be possible to refresh the view of the main GUI thread... So it will freeze the application ! No issue ?
  • [Solved]convert mysql time to QDateTime and vise versa

    6
    0 Votes
    6 Posts
    12k Views
    A
    [quote author="Naouali" date="1306334812"]Hi how can i convert a QDateTime to Mysql datetime ? thanks in advance[/quote] Same way as you do it the other way around: simply rely on the Qt Sql drivers framework to do that for you. I merged this question with the one you asked about doing it the other way around.
  • Qt Static Build- QML Observer issue to buid (3 unresolved external)

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Warning C4312: 'reinterpret_cast' , unknown

    6
    0 Votes
    6 Posts
    5k Views
    E
    I didn't know about "Global Declarations" and I've never heard about Global Declarations . Now I think I understand the warning. Thanks.
  • QRubberBand stuttering

    10
    0 Votes
    10 Posts
    5k Views
    E
    If I use @void QGraphicsItemGroup::addToGroup ( QGraphicsItem * item )@ will the RubberBand intersection be tested only against the group or will it still be tested against every member of the group?
  • [Solved]QSqlDatabasd and undefined reference issue

    4
    0 Votes
    4 Posts
    12k Views
    N
    the problem was solved , i have two installation of Qt , i used the one installed from repository (ubuntu ) and it works fine . thanks for your help .
  • QSortFilterProxyModel filter by IDs [Solved]

    12
    0 Votes
    12 Posts
    12k Views
    A
    OK, great. Glad that you got it working ok.