Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How do i create my 1st Qt application

    7
    0 Votes
    7 Posts
    3k Views
    S
    Thanks for the information. i would love to hear more from you in future.
  • [SOLVED] how to get html bold to be inserted beside the selected word?

    4
    0 Votes
    4 Posts
    2k Views
    K
    i solved the textCursor issue. textCursor() should have been ui->textEdit->textCursor(). the selectedText() i can use to make the bold. this topic is solved.
  • QDataWidgetMapper and formatting date/time

    5
    0 Votes
    5 Posts
    4k Views
    G
    Just for the records: Unfortunately, SQLite does not provide a native date/time type. It is usually mapped into a string columns (like in your case) or an int or double typed column (usually holding seconds since epoch = 1970-01-01 00:00:00 GMT). PS: Ah, I see you got that string to date conversion already and just search for the proper way to inject that beast.
  • [Solved] QUdpSocket - create a connection

    12
    0 Votes
    12 Posts
    35k Views
    L
    You're welcome! If the problem is solved for you feel to edit the title of your inital post to '[Solved] QUdpSocket ...' so it is indicated as such.
  • 0 Votes
    3 Posts
    3k Views
    S
    Thanks Volker. I will test that next week. I am on leave
  • [NEWBIE] Parsing XML to strings

    20
    0 Votes
    20 Posts
    11k Views
    G
    Relative paths are resolved relative to the current directory. The dot "." represents the current directory. So our setCurrent is nothing else than "change the current directory to the current directory". I guess you want to set the current directory to that folder that holds the executable. If so, then use this: @ QDir::setCurrent(qApp->applicationDirPath()); @ Or better prepend your file path with that string.
  • [Moved] QtWebKit not responding to mouse events?

    3
    0 Votes
    3 Posts
    3k Views
    K
    [quote author="Volker" date="1313674766"]The web view has a parent and "suffers" from event propagation through that, but it is not in a layout and it may fail to receive some events this way.[/quote] Very good to know, thanks for the reply (and sorry for my late one). Kyle
  • ItemHasNoContents and boundingRect

    3
    0 Votes
    3 Posts
    2k Views
    I
    hi, i will try but there are perhaps some side-effects, I do not see! So, I ask to prevent this ;) But good idea, I will have a look at this method.
  • QPixmap .png in the same project directory

    4
    0 Votes
    4 Posts
    8k Views
    R
    @QPixmap* pixmap = new QPixmap("some.png");@ This is should work. Since you are not using the resource system, you must do one thing :) . Copy the image to build directory. According to "doc":http://doc.qt.nokia.com/latest/qpixmap.html#QPixmap-4 bq. If fileName contains a relative path (e.g. the filename only) the relevant file must be found relative to the runtime working directory.
  • Add more content to QMenu

    2
    0 Votes
    2 Posts
    3k Views
    S
    You can't add layouts to a QMenu, but you can add widgets containing menus to a QMenu using "QWidgetAction":http://doc.qt.nokia.com/latest/qwidgetaction.html.
  • SQL, export to word

    6
    0 Votes
    6 Posts
    4k Views
    A
    Not from the top of my head, but I know there is such a library in Calligra Suite, a branch-off of KOffice that can write .odt files. Recent versions of Word can read and write those files.
  • Multicolored text for tree/table/list items?

    5
    0 Votes
    5 Posts
    4k Views
    A
    I don't think the solution presented in that FAQ is very usable. Nice if you want to render one fixed word in a fixed color, but it does nothing to support rendering actual rich text in an item view.
  • Compiling for windows xp

    17
    0 Votes
    17 Posts
    9k Views
    G
    [quote author="kitten" date="1313915797"]my windows is 64 bit and when i compile it on release mode it doesn't run [/quote] You should also compile 32 bit for 32 bit systems. 32 bit software can run on 32 bit machines and on 64 bit machines. 64 bit software only on 64 bit machines. The second thing is, if you compile with MSVS, you must always ensure that the redistributables are correctly installed.
  • Advanced tabwidget

    2
    0 Votes
    2 Posts
    2k Views
    S
    Qt does not provide such a widget and there are no current plans of adding such a widget to Qt.
  • Adding item to toolbar context menu

    9
    0 Votes
    9 Posts
    8k Views
    S
    It is not possible to add items to the taskbar context menu using Qt.
  • Help with QNetworkConfigurationManager!

    3
    0 Votes
    3 Posts
    2k Views
    T
    dig it.
  • Parsing .mdb File in Qt4

    15
    0 Votes
    15 Posts
    11k Views
    V
    Now you got my thinkin.
  • [SOLVED] qtcpserver and qmainwindow on the constructor

    8
    0 Votes
    8 Posts
    4k Views
    K
    [quote author="Rahul Das" date="1313916068"]Kalster , you have already raised a question regarding this. Please check the work around i have posted in your other "thread":http://developer.qt.nokia.com/forums/viewthread/9006/.[/quote] Rahul Das is correct. i really do not need this topic anymore because he helped me out in the other topic. he basically solved two topics in one post.
  • [SOLVED] what signal and slot for this server?

    11
    0 Votes
    11 Posts
    5k Views
    K
    the code works excellent. thank you :)
  • [Solved] Unable to include <QtcpSocket>

    4
    0 Votes
    4 Posts
    12k Views
    J
    This was it. I knew it was something easy. Thanks! Ken